Documentation
¶
Overview ¶
Package httpclienttest builds httpclient.Client values for tests against an httptest TLS server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(tb testing.TB, srv *httptest.Server, cfg httpclient.Config) *httpclient.Client
NewClient returns a client built from cfg that trusts and allows the TLS server srv only, with one attempt per call.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.