Documentation
¶
Overview ¶
Package httpclient builds outbound HTTP clients that own their transport.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a client with its own transport and the given timeout. Create it once per backend and reuse it so connections are pooled.
func NewTransport ¶
NewTransport returns a clone of http.DefaultTransport that no other client shares, so CloseIdleConnections on the default transport (httptest.Server.Close) cannot reach it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.