ssetest

package
v0.0.0-...-622e8bd Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamRecorder

type StreamRecorder struct {
	Recorder *httptest.ResponseRecorder
	// contains filtered or unexported fields
}

func NewStreamRecorder

func NewStreamRecorder() *StreamRecorder

func (*StreamRecorder) Bytes

func (w *StreamRecorder) Bytes() []byte

func (*StreamRecorder) Close

func (w *StreamRecorder) Close()

Utility function to simulate client closing connection

func (*StreamRecorder) CloseNotify

func (w *StreamRecorder) CloseNotify() <-chan bool

implement http.CloseNotifier

func (*StreamRecorder) Flush

func (w *StreamRecorder) Flush()

implement http.Flusher

func (*StreamRecorder) Header

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

implement http.ResponseWriter

func (*StreamRecorder) Write

func (w *StreamRecorder) Write(data []byte) (int, error)

func (*StreamRecorder) WriteHeader

func (w *StreamRecorder) WriteHeader(code int)

Jump to

Keyboard shortcuts

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