Versions in this module Expand all Collapse all v0 v0.0.4 Aug 15, 2023 v0.0.3 Aug 15, 2023 v0.0.2 Aug 15, 2023 Changes in this version + const DefaultIgnoreContentTypeForGetRequest + const DefaultIgnoreSSLVerification + const DefaultRetries + const DefaultTimeout + type DialContext func(ctx context.Context, network string, addr string) (net.Conn, error) + type HttpConfig struct + AllowRedirects bool + DialContext DialContext + HttpHandler *httphandler.HttpHandler + HttpProxy *Proxy + HttpTransport *http.Transport + IgnoreContentTypeForGetRequest bool + IgnoreSSLVerification bool + Retries int + Timeout time.Duration + func DefaultHttpConfig() *HttpConfig + func (config *HttpConfig) WithAllowRedirects(allowRedirects bool) *HttpConfig + func (config *HttpConfig) WithDialContext(dial DialContext) *HttpConfig + func (config *HttpConfig) WithHttpHandler(handler *httphandler.HttpHandler) *HttpConfig + func (config *HttpConfig) WithHttpTransport(transport *http.Transport) *HttpConfig + func (config *HttpConfig) WithIgnoreContentTypeForGetRequest(ignoreContentTypeForGetRequest bool) *HttpConfig + func (config *HttpConfig) WithIgnoreSSLVerification(ignore bool) *HttpConfig + func (config *HttpConfig) WithProxy(proxy *Proxy) *HttpConfig + func (config *HttpConfig) WithRetries(retries int) *HttpConfig + func (config *HttpConfig) WithTimeout(timeout time.Duration) *HttpConfig + type Proxy struct + Host string + Password string + Port int + Schema string + Username string + func NewProxy() *Proxy + func (p *Proxy) GetProxyUrl() string + func (p *Proxy) WithHost(host string) *Proxy + func (p *Proxy) WithPassword(pwd string) *Proxy + func (p *Proxy) WithPort(port int) *Proxy + func (p *Proxy) WithSchema(schema string) *Proxy + func (p *Proxy) WithUsername(name string) *Proxy