Versions in this module Expand all Collapse all v0 v0.9.1 Mar 17, 2016 Changes in this version + const Version + var DefaultContentType = "application/x-www-form-urlencoded; charset=utf-8" + var DefaultHeaders = map[string]string + var DefaultJsonType = "application/json; charset=utf-8" + var DefaultRedirectLimit = 10 + var DefaultUserAgent = "go-request/" + Version + type Args struct + BasicAuth BasicAuth + Body io.Reader + Client *http.Client + Cookies map[string]string + Data map[string]string + Files []FileField + Headers map[string]string + Json interface{} + Params map[string]string + Proxy string + func NewArgs(c *http.Client) *Args + type BasicAuth struct + Password string + Username string + type FileField struct + FieldName string + File io.Reader + FileName string + type Request struct + func NewRequest(c *http.Client) *Request + func (req *Request) Delete(url interface{}) (resp *Response, err error) + func (req *Request) Get(url interface{}) (resp *Response, err error) + func (req *Request) Head(url interface{}) (resp *Response, err error) + func (req *Request) Options(url interface{}) (resp *Response, err error) + func (req *Request) Patch(url interface{}) (resp *Response, err error) + func (req *Request) Post(url interface{}) (resp *Response, err error) + func (req *Request) PostForm(url interface{}, data interface{}) (resp *Response, err error) + func (req *Request) Put(url interface{}) (resp *Response, err error) + func (req *Request) Reset() + type Response struct + func Delete(url string, a *Args) (resp *Response, err error) + func Get(url string, a *Args) (resp *Response, err error) + func Head(url string, a *Args) (resp *Response, err error) + func Options(url string, a *Args) (resp *Response, err error) + func Patch(url string, a *Args) (resp *Response, err error) + func Post(url string, a *Args) (resp *Response, err error) + func Put(url string, a *Args) (resp *Response, err error) + func (resp *Response) Content() (b []byte, err error) + func (resp *Response) Json() (*simplejson.Json, error) + func (resp *Response) OK() bool + func (resp *Response) Ok() bool + func (resp *Response) Reason() string + func (resp *Response) Text() (string, error) + func (resp *Response) URL() (*url.URL, error)