Versions in this module Expand all Collapse all v0 v0.9.99 Oct 17, 2016 v0.9.97 Nov 2, 2016 Changes in this version + func SetDefaultSetting(setting Settings) + func TimeoutDialer(cTimeout time.Duration, rwTimeout time.Duration) func(net, addr string) (c net.Conn, err error) + type Request struct + func Delete(url string) *Request + func Get(url string) *Request + func Head(url string) *Request + func Post(url string) *Request + func Put(url string) *Request + func (r *Request) Body(data interface{}) *Request + func (r *Request) Bytes() ([]byte, error) + func (r *Request) Debug(isdebug bool) *Request + func (r *Request) Header(key, value string) *Request + func (r *Request) Headers() http.Header + func (r *Request) Param(key, value string) *Request + func (r *Request) PostFile(formname, filename string) *Request + func (r *Request) Response() (*http.Response, error) + func (r *Request) SetBasicAuth(username, password string) *Request + func (r *Request) SetCookie(cookie *http.Cookie) *Request + func (r *Request) SetEnableCookie(enable bool) *Request + func (r *Request) SetProtocolVersion(vers string) *Request + func (r *Request) SetProxy(proxy func(*http.Request) (*url.URL, error)) *Request + func (r *Request) SetTLSClientConfig(config *tls.Config) *Request + func (r *Request) SetTimeout(connectTimeout, readWriteTimeout time.Duration) *Request + func (r *Request) SetTransport(transport http.RoundTripper) *Request + func (r *Request) SetUserAgent(useragent string) *Request + func (r *Request) Setting(setting Settings) *Request + func (r *Request) String() (string, error) + func (r *Request) ToFile(filename string) error + func (r *Request) ToJson(v interface{}) error + func (r *Request) ToXml(v interface{}) error + type Settings struct + ConnectTimeout time.Duration + EnableCookie bool + Proxy func(*http.Request) (*url.URL, error) + ReadWriteTimeout time.Duration + ShowDebug bool + TlsClientConfig *tls.Config + Transport http.RoundTripper + UserAgent string