Documentation ¶
Overview ¶
Package mock implements a mock HTTP server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPMock ¶
type HTTPMock struct {
// contains filtered or unexported fields
}
HTTPMock is supposed to be used to mock real HTTP server but have the ability to test all other httpmux plugin related code
Example:
httpmux.FromExistingServer(mock.SetHandler) mock.NewRequest("GET", "/v1/a", nil)
func (*HTTPMock) NewRequest ¶
NewRequest propagates the request to the httpmux
Click to show internal directories.
Click to hide internal directories.