mock

package
v2.19.17+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequest

func NewRequest(reqs ...*http.Request) engine.Request

func NewResponseWriter

func NewResponseWriter(w *http.Response) http.ResponseWriter

Types

type Request

type Request struct {
	*standard.Request
}

type Response

type Response struct {
	*standard.Response
}

func NewResponse

func NewResponse(args ...interface{}) *Response

type ResponseWriter

type ResponseWriter struct {
	*http.Response
	// contains filtered or unexported fields
}

func (*ResponseWriter) Header

func (w *ResponseWriter) Header() http.Header

func (*ResponseWriter) Write

func (w *ResponseWriter) Write(b []byte) (int, error)

func (*ResponseWriter) WriteHeader

func (w *ResponseWriter) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

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