Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct { http.ResponseWriter Status int }
Writer is a custom wrapper around http.ResponseWriter used in the server package. It also captures the HTTP status code and and implements the http.Flusher and http.Hijacker interfaces.
func (*Writer) Flush ¶
func (w *Writer) Flush()
Flush method is the http.Flusher implementation of this wrapper. The Flush() method will be called if the wrapped http.ResponseWriter supports flushing.
func (*Writer) Hijack ¶
Hijack is the implementation of the http.Hijacker trying to parse the wrapped http.ResponseWriter into a http.Hijacker interface.
It returns an error if hijacking is not supported.
func (*Writer) WriteHeader ¶
WriteHeader sets the status code and calls the WriteHeader() method of http.ResponseWriter.
Click to show internal directories.
Click to hide internal directories.