TestResponseWriter

package
v1.0.58 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DbFlag map[string]bool

Functions

func SetDbFlag

func SetDbFlag(d map[string]bool)

Types

type CliResponseWriter

type CliResponseWriter struct {
	// contains filtered or unexported fields
}

func NewTestResonseWriter

func NewTestResonseWriter() *CliResponseWriter

func (*CliResponseWriter) DumpWhere

func (cli *CliResponseWriter) DumpWhere()

func (*CliResponseWriter) Flush

func (cli *CliResponseWriter) Flush()

cli.Flush()

func (*CliResponseWriter) GetBody

func (cli *CliResponseWriter) GetBody() string

func (*CliResponseWriter) Header

func (cli *CliResponseWriter) Header() (hdr http.Header)

func (*CliResponseWriter) ServeHTTP

func (cli *CliResponseWriter) ServeHTTP(www http.ResponseWriter, req *http.Request)

func (*CliResponseWriter) Write

func (cli *CliResponseWriter) Write(p []byte) (n int, err error)
type Writer interface {
	Write(p []byte) (n int, err error)
}

func (*CliResponseWriter) WriteHeader

func (cli *CliResponseWriter) WriteHeader(status int)

Jump to

Keyboard shortcuts

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