Documentation ¶
Overview ¶
Deprecated: Use net/http/httptest instead.
Index ¶
- type TestResponseWriterdeprecated
- type TestRoundTripperdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestResponseWriter
deprecated
type TestResponseWriter struct { // StatusCode is the last int written by the call to WriteHeader(int) StatusCode int // Output is a string containing the written bytes using the Write([]byte) func. Output string // contains filtered or unexported fields }
Deprecated: Use net/http/httptest instead.
func (*TestResponseWriter) Header
deprecated
func (rw *TestResponseWriter) Header() http.Header
Deprecated: Use net/http/httptest instead.
func (*TestResponseWriter) Write
deprecated
func (rw *TestResponseWriter) Write(bytes []byte) (int, error)
Deprecated: Use net/http/httptest instead.
func (*TestResponseWriter) WriteHeader
deprecated
func (rw *TestResponseWriter) WriteHeader(i int)
Deprecated: Use net/http/httptest instead.
type TestRoundTripper
deprecated
Deprecated: Use net/http/httptest instead.
func (*TestRoundTripper) RoundTrip
deprecated
Deprecated: Use net/http/httptest instead.
Click to show internal directories.
Click to hide internal directories.