Documentation ¶
Index ¶
- func NewHttpClient(options ...Option) (*http.Client, error)
- type HttpClientConfig
- type Option
- func WithDialTimeout(timeout time.Duration) Option
- func WithIdleConnTimeout(idleconntimeout time.Duration) Option
- func WithMaxIdleConns(maxidleconns int) Option
- func WithTLSHandshakeTimeout(timeout time.Duration) Option
- func WithTimeout(timeout time.Duration) Option
- func WithTlsConfig(tlsConfig *tls.Config) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpClientConfig ¶
type Option ¶
type Option func(*HttpClientConfig)
Option is a HttpClientConfig configurator to be supplied to NewHttpClientConfig() function.
func WithDialTimeout ¶
WithDialTimeout sets the Timeout
func WithIdleConnTimeout ¶
WithIdleConnTimeout sets the IdleConnTimeout
func WithMaxIdleConns ¶
WithMaxIdleConns sets the MaxIdleConns
func WithTLSHandshakeTimeout ¶
WithTLSHandshakeTimeout sets the Timeout
func WithTlsConfig ¶
WithIdleConnTimeout sets the IdleConnTimeout
Click to show internal directories.
Click to hide internal directories.