Documentation
¶
Overview ¶
Package middleware contains http.Handler middlewares
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHighjack = errors.New("hijack not supported")
ErrHighjack error high jack not supported
Functions ¶
Types ¶
type StatusWriter ¶
type StatusWriter struct { http.ResponseWriter Status int }
StatusWriter wrapper around ResponseWriter that keeps track of the HTTP status code and implements http.Hijaker
func (*StatusWriter) Hijack ¶
func (sw *StatusWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)
Hijack implements http.Hijacker
func (*StatusWriter) WriteHeader ¶
func (sw *StatusWriter) WriteHeader(status int)
WriteHeader wraps underlying WriterHeader and keeps http status code
Click to show internal directories.
Click to hide internal directories.