http-sse: github.com/patdowney/http-sse/ssetest Index | Files

package ssetest

import "github.com/patdowney/http-sse/ssetest"

Index

Package Files

streamrecorder.go

type StreamRecorder Uses

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

func NewStreamRecorder Uses

func NewStreamRecorder() *StreamRecorder

func (*StreamRecorder) Bytes Uses

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

func (*StreamRecorder) Close Uses

func (w *StreamRecorder) Close()

Utility function to simulate client closing connection

func (*StreamRecorder) CloseNotify Uses

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

implement http.CloseNotifier

func (*StreamRecorder) Flush Uses

func (w *StreamRecorder) Flush()

implement http.Flusher

func (*StreamRecorder) Header Uses

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

implement http.ResponseWriter

func (*StreamRecorder) Write Uses

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

func (*StreamRecorder) WriteHeader Uses

func (w *StreamRecorder) WriteHeader(code int)

Package ssetest imports 3 packages (graph) and is imported by 1 packages. Updated 2016-08-18. Refresh now. Tools for package owners.