Documentation ¶
Overview ¶
Package httptest provides a mockable wrapper for net/http/httptest.
Index ¶
- type Impl
- func (*Impl) NewRecorder() *httptest.ResponseRecorder
- func (*Impl) NewRequest(method string, target string, body io.Reader) *http.Request
- func (*Impl) NewServer(handler http.Handler) *httptest.Server
- func (*Impl) NewTLSServer(handler http.Handler) *httptest.Server
- func (*Impl) NewUnstartedServer(handler http.Handler) *httptest.Server
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) NewRecorder ¶
func (*Impl) NewRecorder() *httptest.ResponseRecorder
func (*Impl) NewRequest ¶
Click to show internal directories.
Click to hide internal directories.