iottest

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseWrite

type ResponseWrite struct {
	Code      int
	HeaderMap viot.Header
	Body      interface{}
	// contains filtered or unexported fields
}

func (*ResponseWrite) DebugHijack added in v2.5.0

func (T *ResponseWrite) DebugHijack(client func(net.Conn))

func (*ResponseWrite) DebugRawControl added in v2.5.0

func (T *ResponseWrite) DebugRawControl(client func(net.Conn))

func (*ResponseWrite) DebugRoundTrip added in v2.5.0

func (T *ResponseWrite) DebugRoundTrip(rr func(*viot.Request) (*viot.Response, error))

func (*ResponseWrite) Flush

func (T *ResponseWrite) Flush()

func (*ResponseWrite) Header

func (T *ResponseWrite) Header() viot.Header

func (*ResponseWrite) Hijack

func (T *ResponseWrite) Hijack() (net.Conn, *bufio.ReadWriter, error)

func (*ResponseWrite) Launch

func (T *ResponseWrite) Launch() viot.RoundTripper

func (*ResponseWrite) RawControl added in v2.5.0

func (T *ResponseWrite) RawControl(f func(net.Conn, *bufio.Reader) error)

func (*ResponseWrite) Result

func (T *ResponseWrite) Result() *viot.Response

func (*ResponseWrite) RoundTrip

func (T *ResponseWrite) RoundTrip(req *viot.Request) (resp *viot.Response, err error)

func (*ResponseWrite) RoundTripContext

func (T *ResponseWrite) RoundTripContext(ctx context.Context, req *viot.Request) (resp *viot.Response, err error)

func (*ResponseWrite) SetBody

func (T *ResponseWrite) SetBody(body interface{}) error

func (*ResponseWrite) SetParse added in v2.5.0

func (T *ResponseWrite) SetParse(p viot.Parser)

func (*ResponseWrite) Status

func (T *ResponseWrite) Status(code int)

func (*ResponseWrite) Write

func (T *ResponseWrite) Write(buf []byte) (int, error)

func (*ResponseWrite) WriteString

func (T *ResponseWrite) WriteString(str string) (int, error)

Jump to

Keyboard shortcuts

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