Documentation ¶
Overview ¶
Package httpmultibin is indended only for use in tests, do not import in production code!
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPMultiBin ¶
type HTTPMultiBin struct { Mux *http.ServeMux ServerHTTP *httptest.Server ServerHTTPS *httptest.Server ServerHTTP2 *httptest.Server Replacer *strings.Replacer TLSClientConfig *tls.Config Dialer *netext.Dialer HTTPTransport *http.Transport Context context.Context Cleanup func() }
HTTPMultiBin can be used as a local alternative of httpbin.org. It offers both http and https servers, as well as real domains
func NewHTTPMultiBin ¶
func NewHTTPMultiBin(t testing.TB) *HTTPMultiBin
NewHTTPMultiBin returns a fully configured and running HTTPMultiBin
Click to show internal directories.
Click to hide internal directories.