...
Package http
Overview ▹
Index ▹
type TestResponseWriter ¶
TestResponseWriter DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.
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 }
func (*TestResponseWriter) Header ¶
func (rw *TestResponseWriter) Header() http.Header
Header DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.
func (*TestResponseWriter) Write ¶
func (rw *TestResponseWriter) Write(bytes []byte) (int, error)
Write DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.
func (*TestResponseWriter) WriteHeader ¶
func (rw *TestResponseWriter) WriteHeader(i int)
WriteHeader DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.
type TestRoundTripper ¶
TestRoundTripper DEPRECATED USE net/http/httptest
type TestRoundTripper struct { mock.Mock }
func (*TestRoundTripper) RoundTrip ¶
func (t *TestRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)
RoundTrip DEPRECATED USE net/http/httptest