Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ResponseRecorder ¶
type ResponseRecorder struct { http.ResponseWriter Status int }
ResponseRecorder is a custom ResponseWriter that captures the status code.
func NewResponseRecorder ¶
func NewResponseRecorder(w http.ResponseWriter) *ResponseRecorder
NewResponseRecorder creates a new ResponseRecorder.
func (*ResponseRecorder) WriteHeader ¶
func (r *ResponseRecorder) WriteHeader(status int)
WriteHeader captures the status code.
Click to show internal directories.
Click to hide internal directories.