Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecordingResponseWriter ¶
type RecordingResponseWriter interface { http.ResponseWriter http.Flusher Status() int Size() int GetTimeStamp() time.Time SetTimeStamp(time.Time) }
RecordingResponseWriter is the interface of the recorder.
func MakeRecorder ¶
func MakeRecorder(w http.ResponseWriter) RecordingResponseWriter
MakeRecorder returns a RecordingResponseWriter which wraps around the provided http.ResponseWriter. After the response has been written, you can get Size() and Status()
Click to show internal directories.
Click to hide internal directories.