Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientWithConfigPath ¶
NewClientWithConfigPath returns http client with options from path.
Types ¶
type Options ¶
type Options struct { Name string NoDefaultUserAgentHeader bool MaxConnsPerHost int ReadBufferSize int WriteBufferSize int MaxConnWaitTimeout time.Duration ReadTimeout time.Duration WriteTimeout time.Duration MaxIdleConnDuration time.Duration MaxConnDuration time.Duration DisableHeaderNamesNormalizing bool DialDualStack bool MaxResponseBodySize int MaxIdemponentCallAttempts int }
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.