Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultTimeout = 10 * time.Second MaxIdleConnsPerHost = 50 MaxConnsPerHost = 50 )
Variables ¶
This section is empty.
Functions ¶
func TestClient ¶
func TestClient(fn RoundTripFunc) *http.Client
TestClient returns *http.Client with Transport replaced to avoid making real calls
Types ¶
type Client ¶
func GetTestClient ¶
GetTestClient returns a TestClient
Click to show internal directories.
Click to hide internal directories.