Versions in this module Expand all Collapse all v1 v1.0.1 Jun 23, 2025 v1.0.0 Jun 21, 2025 Changes in this version + var DefaultClient = &http.Client + var DefaultDialer = &net.Dialer + var DefaultTransport http.RoundTripper = &http.Transport + func Deflate() *compression + func GetTlsConfig(cerPath, keyPath string) *tls.Config + func Gzip() *compression + func SetConnectTimeout(duration time.Duration) + func Zlib() *compression + type Body struct + func (b *Body) Close() error + func (b *Body) FromToJson(o interface{}) error + func (b *Body) FromToString() (string, error) + func (b *Body) Read(p []byte) (int, 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{} + Compression *compression + ContentType string + Context context.Context + CookieJar http.CookieJar + Host string + Insecure bool + MaxRedirects int + Method string + OnBeforeRequest func(goxhttp *Request, httpreq *http.Request) + Proxy string + Query interface{} + RedirectHeaders bool + ShowDebug bool + Timeout time.Duration + TlsConfig *tls.Config + Url string + UserAgent string + XForwardedFor string + func (r *Request) AddCookie(c *http.Cookie) + func (r *Request) AddHeader(key 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(key string, value string) Request + type Response struct + Body *Body + Url string + func (r Response) CancelRequest()