Documentation ¶
Index ¶
- type StreamRecorder
- func (w *StreamRecorder) Bytes() []byte
- func (w *StreamRecorder) Close()
- func (w *StreamRecorder) CloseNotify() <-chan bool
- func (w *StreamRecorder) Flush()
- func (w *StreamRecorder) Header() http.Header
- func (w *StreamRecorder) Write(data []byte) (int, error)
- func (w *StreamRecorder) WriteHeader(code int)
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) Header ¶
func (w *StreamRecorder) Header() http.Header
implement http.ResponseWriter
func (*StreamRecorder) WriteHeader ¶
func (w *StreamRecorder) WriteHeader(code int)
Click to show internal directories.
Click to hide internal directories.