Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StatusRecorder ¶
type StatusRecorder struct { http.ResponseWriter Status int Length int }
StatusRecorder wraps a ResponseWriter and records the status code
func (*StatusRecorder) Write ¶
func (r *StatusRecorder) Write(b []byte) (n int, err error)
Write Intercepts the status
func (*StatusRecorder) WriteHeader ¶
func (r *StatusRecorder) WriteHeader(status int)
WriteHeader Intercepts the status
Click to show internal directories.
Click to hide internal directories.