Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSchemeHostKey ¶
Types ¶
type HTTPClient ¶
HTTPClient is a wrapper around http.Client that allows for limiting the number of concurrent connections per host utilizing a client pool. If the OptMaxConnPerHost option is not set, the client pool will not be used.
func NewHTTPClient ¶ added in v0.2.0
func NewHTTPClient(opts Options) *HTTPClient
NewHTTPClient factory function returns a new http.Client with the appropriate settings and can limit number of clients per host if the OptMaxConnPerHost option is set.
Click to show internal directories.
Click to hide internal directories.