http

package
v0.2.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Overview

Deprecated: Use net/http/httptest instead.

Index

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

type TestRoundTripper struct {
	mock.Mock
}

Deprecated: Use net/http/httptest instead.

func (*TestRoundTripper) RoundTrip deprecated

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

Deprecated: Use net/http/httptest instead.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL