Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHostConnectionPool ¶
func CreateHostConnectionPool(host string)
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 MaxConnPerHost option is not set, the client pool will not be used.
func AcquireClient ¶
func AcquireClient(host string) (*HTTPClient, error)
func (*HTTPClient) Done ¶
func (c *HTTPClient) Done()
Done releases the semaphore. This is a simple utility function that should be called in a defer statement.
type R8GetRetryingRoundTripper ¶
R8GetRetryingRoundTripper is a wrapper around http.Transport that allows for retrying failed requests
Click to show internal directories.
Click to hide internal directories.