Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

http

v1.2.2
github.com/stRetchr/tesTify/http

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

7 matches

Top ↑

Package http DEPRECATED USE net/http/httptest

Types

TestResponseWriter

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.

TestResponseWriter.Header

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

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

TestResponseWriter.Write

func (rw *TestResponseWriter) Write(bytes []byte) (int, error)

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

TestResponseWriter.WriteHeader

func (rw *TestResponseWriter) WriteHeader(i int)

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

TestRoundTripper

type TestRoundTripper struct {
	mock.Mock
}

TestRoundTripper DEPRECATED USE net/http/httptest

TestRoundTripper.RoundTrip

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

RoundTrip DEPRECATED USE net/http/httptest

Dependency graph