Documentation ¶
Index ¶
- Constants
- type DialContext
- type HttpConfig
- func (config *HttpConfig) WithDialContext(dial DialContext) *HttpConfig
- func (config *HttpConfig) WithHttpHandler(handler *httphandler.HttpHandler) *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
Constants ¶
View Source
const DefaultIgnoreSSLVerification = false
View Source
const DefaultRetries = 0
View Source
const DefaultTimeout = 120 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DialContext ¶
type HttpConfig ¶
type HttpConfig struct { DialContext DialContext Timeout time.Duration Retries int HttpProxy *Proxy IgnoreSSLVerification bool HttpHandler *httphandler.HttpHandler }
func DefaultHttpConfig ¶
func DefaultHttpConfig() *HttpConfig
func (*HttpConfig) WithDialContext ¶
func (config *HttpConfig) WithDialContext(dial DialContext) *HttpConfig
func (*HttpConfig) WithHttpHandler ¶
func (config *HttpConfig) WithHttpHandler(handler *httphandler.HttpHandler) *HttpConfig
func (*HttpConfig) WithIgnoreSSLVerification ¶
func (config *HttpConfig) WithIgnoreSSLVerification(ignore bool) *HttpConfig
func (*HttpConfig) WithProxy ¶
func (config *HttpConfig) WithProxy(proxy *Proxy) *HttpConfig
func (*HttpConfig) WithRetries ¶
func (config *HttpConfig) WithRetries(retries int) *HttpConfig
func (*HttpConfig) WithTimeout ¶
func (config *HttpConfig) WithTimeout(timeout time.Duration) *HttpConfig
type Proxy ¶
func (*Proxy) GetProxyUrl ¶
func (*Proxy) WithPassword ¶
func (*Proxy) WithSchema ¶
func (*Proxy) WithUsername ¶
Click to show internal directories.
Click to hide internal directories.