Versions in this module Expand all Collapse all v0 v0.1.1 Jul 3, 2016 Changes in this version + const Version + var Assertions = make(map[string]assert.Func) + var NewHandler = gentleman.NewHandler + var UserAgent = "baloo/" + Version + func AddAssertFunc(name string, fn assert.Func) + func FlushAssertFuncs() + type Client struct + Client *gentleman.Client + Parent *Client + func New(url string) *Client + func (c *Client) AddCookie(cookie *http.Cookie) *Client + func (c *Client) AddCookies(data []*http.Cookie) *Client + func (c *Client) AddHeader(name, value string) *Client + func (c *Client) BaseURL(uri string) *Client + func (c *Client) CookieJar() *Client + func (c *Client) Delete(path string) *Request + func (c *Client) Get(path string) *Request + func (c *Client) Head(path string) *Request + func (c *Client) Method(name string) *Client + func (c *Client) Param(name, value string) *Client + func (c *Client) Params(params map[string]string) *Client + func (c *Client) Patch(path string) *Request + func (c *Client) Path(path string) *Client + func (c *Client) Post(path string) *Request + func (c *Client) Put(path string) *Request + func (c *Client) Request() *Request + func (c *Client) SetHeader(key, value string) *Client + func (c *Client) SetHeaders(fields map[string]string) *Client + func (c *Client) URL(uri string) *Client + func (c *Client) Use(p plugin.Plugin) *Client + func (c *Client) UseError(fn context.HandlerFunc) *Client + func (c *Client) UseHandler(phase string, fn context.HandlerFunc) *Client + func (c *Client) UseParent(parent *Client) *Client + func (c *Client) UseRequest(fn context.HandlerFunc) *Client + func (c *Client) UseResponse(fn context.HandlerFunc) *Client + type Expect struct + func NewExpect(req *Request) *Expect + func (e *Expect) Assert(assertions ...string) *Expect + func (e *Expect) AssertFunc(assertion ...assert.Func) *Expect + func (e *Expect) BindTest(t *testing.T) *Expect + func (e *Expect) BodyEquals(pattern string) *Expect + func (e *Expect) BodyLength(length int) *Expect + func (e *Expect) BodyMatchString(pattern string) *Expect + func (e *Expect) Done() error + func (e *Expect) End() error + func (e *Expect) Header(key, value string) *Expect + func (e *Expect) HeaderEquals(key, value string) *Expect + func (e *Expect) HeaderNotEquals(key, value string) *Expect + func (e *Expect) HeaderNotPresent(key string) *Expect + func (e *Expect) HeaderPresent(key string) *Expect + func (e *Expect) JSON(data interface{}) *Expect + func (e *Expect) JSONSchema(schema string) *Expect + func (e *Expect) RedirectTo(uri string) *Expect + func (e *Expect) Status(code int) *Expect + func (e *Expect) StatusClientError() *Expect + func (e *Expect) StatusError() *Expect + func (e *Expect) StatusOk() *Expect + func (e *Expect) StatusServerError() *Expect + func (e *Expect) Type(kind string) *Expect + type Request struct + Client *Client + Request *gentleman.Request + func NewRequest() *Request + func (r *Request) AddCookie(cookie *http.Cookie) *Request + func (r *Request) AddCookies(data []*http.Cookie) *Request + func (r *Request) AddHeader(name, value string) *Request + func (r *Request) AddPath(path string) *Request + func (r *Request) AddQuery(name, value string) *Request + func (r *Request) Assert(t *testing.T) *Expect + func (r *Request) BaseURL(uri string) *Request + func (r *Request) Body(reader io.Reader) *Request + func (r *Request) BodyString(data string) *Request + func (r *Request) Clone() *Request + func (r *Request) CookieJar() *Request + func (r *Request) Expect(t *testing.T) *Expect + func (r *Request) File(name string, reader io.Reader) *Request + func (r *Request) Files(files []multipart.FormFile) *Request + func (r *Request) Form(data multipart.FormData) *Request + func (r *Request) JSON(data interface{}) *Request + func (r *Request) Method(method string) *Request + func (r *Request) Param(name, value string) *Request + func (r *Request) Params(params map[string]string) *Request + func (r *Request) Path(path string) *Request + func (r *Request) Send() (*gentleman.Response, error) + func (r *Request) SetClient(cli *Client) *Request + func (r *Request) SetHeader(name, value string) *Request + func (r *Request) SetHeaders(fields map[string]string) *Request + func (r *Request) SetQuery(name, value string) *Request + func (r *Request) SetQueryParams(params map[string]string) *Request + func (r *Request) Type(name string) *Request + func (r *Request) URL(uri string) *Request + func (r *Request) Use(p plugin.Plugin) *Request + func (r *Request) UseError(fn context.HandlerFunc) *Request + func (r *Request) UseHandler(phase string, fn context.HandlerFunc) *Request + func (r *Request) UseRequest(fn context.HandlerFunc) *Request + func (r *Request) UseResponse(fn context.HandlerFunc) *Request + func (r *Request) XML(data interface{}) *Request