Versions in this module Expand all Collapse all v0 v0.0.8 Nov 18, 2022 Changes in this version + func TimeoutDialer(cTimeout time.Duration, rwTimeout time.Duration) func(net, addr string) (c net.Conn, err error) + type HTTPRequest struct + func Delete(url string) *HTTPRequest + func Get(url string) *HTTPRequest + func Head(url string) *HTTPRequest + func NewRequest(rawurl, method string) *HTTPRequest + func Post(url string) *HTTPRequest + func Put(url string) *HTTPRequest + func (b *HTTPRequest) Body(data interface{}) *HTTPRequest + func (b *HTTPRequest) Bytes() ([]byte, error) + func (b *HTTPRequest) Debug(isdebug bool) *HTTPRequest + func (b *HTTPRequest) Delete(url string) *HTTPRequest + func (b *HTTPRequest) DoRequest() (resp *http.Response, err error) + func (b *HTTPRequest) Get(url string) *HTTPRequest + func (b *HTTPRequest) Head(url string) *HTTPRequest + func (b *HTTPRequest) Header(key, value string) *HTTPRequest + func (b *HTTPRequest) JSONBody(obj interface{}) (*HTTPRequest, error) + func (b *HTTPRequest) NewRequest(rawurl, method string) *HTTPRequest + func (b *HTTPRequest) Param(key, value string) *HTTPRequest + func (b *HTTPRequest) Post(url string) *HTTPRequest + func (b *HTTPRequest) PostFile(formname, filename string) *HTTPRequest + func (b *HTTPRequest) Put(url string) *HTTPRequest + func (b *HTTPRequest) Response() (*http.Response, error) + func (b *HTTPRequest) SetBasicAuth(username, password string) *HTTPRequest + func (b *HTTPRequest) SetCheckRedirect(redirect func(req *http.Request, via []*http.Request) error) *HTTPRequest + func (b *HTTPRequest) SetCookie(cookie *http.Cookie) *HTTPRequest + func (b *HTTPRequest) SetEnableCookie(enable bool) *HTTPRequest + func (b *HTTPRequest) SetHost(host string) *HTTPRequest + func (b *HTTPRequest) SetProtocolVersion(vers string) *HTTPRequest + func (b *HTTPRequest) SetProxy(proxy func(*http.Request) (*url.URL, error)) *HTTPRequest + func (b *HTTPRequest) SetTLSClientConfig(config *tls.Config) *HTTPRequest + func (b *HTTPRequest) SetTimeout(connectTimeout, readWriteTimeout time.Duration) *HTTPRequest + func (b *HTTPRequest) SetTransport(transport http.RoundTripper) *HTTPRequest + func (b *HTTPRequest) SetUserAgent(useragent string) *HTTPRequest + func (b *HTTPRequest) Setting(setting HTTPSettings) *HTTPRequest + func (b *HTTPRequest) String() (string, error) + func (b *HTTPRequest) ToFile(filename string) error + func (b *HTTPRequest) ToJSON(v interface{}) error + func (b *HTTPRequest) ToXML(v interface{}) error + type HTTPSettings struct + CheckRedirect func(req *http.Request, via []*http.Request) error + ConnectTimeout time.Duration + DumpBody bool + EnableCookie bool + Gzip bool + Proxy func(*http.Request) (*url.URL, error) + ReadWriteTimeout time.Duration + Retries int + ShowDebug bool + TLSClientConfig *tls.Config + Transport http.RoundTripper + UserAgent string