mock

package
v0.0.0-...-9146478 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPResponseWriter

type HTTPResponseWriter struct {
	Status     int
	MockHeader http.Header
	Bytes      *bytes.Buffer
}

HTTPResponseWriter .

func NewHTTPResponseWriter

func NewHTTPResponseWriter() *HTTPResponseWriter

NewHTTPResponseWriter .

func (*HTTPResponseWriter) Header

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

Header .

func (*HTTPResponseWriter) Write

func (rw *HTTPResponseWriter) Write(byts []byte) (int, error)

Write .

func (*HTTPResponseWriter) WriteHeader

func (rw *HTTPResponseWriter) WriteHeader(statusCode int)

WriteHeader .

Jump to

Keyboard shortcuts

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