Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientWithConfigPath ¶
NewClientWithConfigPath returns a http client with options from config path.
Types ¶
type Options ¶
type Options struct {
MaxIdleConnPerHost int
MaxIdleConn int
MaxConnsPerHost int
IdleConnTimeout time.Duration
DisableKeepAlives bool
DisableCompression bool
ForceHTTP2 bool `config:"forceHTTP2"`
TLSHandshakeTimeout time.Duration `config:"TLSHandshakeTimeout"`
Timeout time.Duration
KeepAlive time.Duration
ExpectContinueTimeout time.Duration
DualStack bool
DialTimeout time.Duration
}
Options http client options
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.
Click to show internal directories.
Click to hide internal directories.