Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Mux is a multiplexer that can be used to register handlers. Mux *http.ServeMux // Server is an in-memory HTTP server for testing. Server *httptest.Server )
Functions ¶
func Endpoint ¶
func Endpoint() string
Endpoint returns a fake endpoint that will actually target the Mux.
func TestHeader ¶
TestHeader checks that the header on the http.Request matches the expected value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.