Versions in this module Expand all Collapse all v0 v0.1.3 Mar 22, 2016 v0.1.0 Mar 22, 2016 Changes in this version + const UserAgent + const Version + var DefaultDialer = &net.Dialer + var DefaultTransport = NewDefaultTransport(DefaultDialer) + var DialKeepAlive = 30 * time.Second + var DialTimeout = 30 * time.Second + var NewContext = context.New + var NewHandler = context.NewHandler + var NewMiddleware = middleware.New + var RequestTimeout = 60 * time.Second + var TLSHandshakeTimeout = 10 * time.Second + func EnsureResponseFinalized(httpResp *Response) + func NewDefaultTransport(dialer *net.Dialer) *http.Transport + type Client struct + Context *context.Context + Middleware middleware.Middleware + Parent *Client + func New() *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() *Request + func (c *Client) Get() *Request + func (c *Client) Head() *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() *Request + func (c *Client) Path(path string) *Client + func (c *Client) Post() *Request + func (c *Client) Put() *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 Dispatcher struct + func NewDispatcher(req *Request) *Dispatcher + func (d *Dispatcher) Dispatch() *c.Context + type Request struct + Client *Client + Context *context.Context + Middleware middleware.Middleware + 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) 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) Do() (*Response, error) + 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) Mux() *mux.Mux + 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() (*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 + type Response struct + ClientError bool + Context *context.Context + Cookies []*http.Cookie + Error error + Header http.Header + Ok bool + RawRequest *http.Request + RawResponse *http.Response + ServerError bool + StatusCode int + func (r *Response) Bytes() []byte + func (r *Response) ClearInternalBuffer() + func (r *Response) Close() error + func (r *Response) JSON(userStruct interface{}) error + func (r *Response) Read(p []byte) (n int, err error) + func (r *Response) SaveToFile(fileName string) error + func (r *Response) String() string + func (r *Response) XML(userStruct interface{}, charsetReader utils.XMLCharDecoder) error Other modules containing this package gopkg.in/h2non/gentleman.v1 gopkg.in/h2non/gentleman.v2