Versions in this module Expand all Collapse all v0 v0.1.0 Apr 25, 2021 Changes in this version + var DeFaultTransportTLS http.RoundTripper = &http.Transport + var DefaultDialer = &net.Dialer + var DefaultTransport http.RoundTripper = &http.Transport + func Deflate() *compression + func Gzip() *compression + func SetConnectTimeout(duration time.Duration) + func Zlib() *compression + type Body struct + func (b *Body) Close() error + func (b *Body) FromJsonTo(o interface{}) error + func (b *Body) Read(p []byte) (int, error) + func (b *Body) ToString() (string, error) + type Error struct + Err error + func (e *Error) Error() string + func (e *Error) Timeout() bool + type Request struct + Accept string + BasicAuthPassword string + BasicAuthUsername string + Body interface{} + Client *http.Client + Compression *compression + ContentType string + CookieJar http.CookieJar + Host string + Insecure bool + MaxRedirects int + Method string + OnBeforeRequest func(goreq *Request, httpreq *http.Request) + Proxy string + QueryString interface{} + RedirectHeaders bool + ShowDebug bool + Timeout time.Duration + Uri string + UserAgent string + func (r *Request) AddCookie(c *http.Cookie) + func (r *Request) AddHeader(name string, value string) + func (r Request) Do() (*Response, error) + func (r Request) NewRequest() (*http.Request, error) + func (r Request) WithCookie(c *http.Cookie) Request + func (r Request) WithHeader(name string, value string) Request + type Response struct + Body *Body + Uri string + func (r Response) CancelRequest()