testify: github.com/stretchr/testify/http Index | Files

package http

import "github.com/stretchr/testify/http"

Package http DEPRECATED USE net/http/httptest

Index

Package Files

doc.go test_response_writer.go test_round_tripper.go

type TestResponseWriter Uses

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
}

TestResponseWriter DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.

func (*TestResponseWriter) Header Uses

func (rw *TestResponseWriter) Header() http.Header

Header DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.

func (*TestResponseWriter) Write Uses

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 Uses

func (rw *TestResponseWriter) WriteHeader(i int)

WriteHeader DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.

type TestRoundTripper Uses

type TestRoundTripper struct {
    mock.Mock
}

TestRoundTripper DEPRECATED USE net/http/httptest

func (*TestRoundTripper) RoundTrip Uses

func (t *TestRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip DEPRECATED USE net/http/httptest

Package http imports 2 packages (graph) and is imported by 94 packages. Updated 2016-11-10. Refresh now. Tools for package owners.