Documentation
¶
Overview ¶
Package responsewriter.
This package provide wrapper type for http.ResponseWriter and provide additional functionality to it
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseWriter ¶
type ResponseWriter interface {
http.ResponseWriter
// Tells status if already written, otherwise 0
Status() int
// Tells body size if already written, otherwise 0
Size() int
// Tells if already written
Written() bool
// Tells if hijacked
Hijacked() bool
}
func Wrap ¶
func Wrap(rw http.ResponseWriter) ResponseWriter
Wrap a net/http.ResponseWriter, return rw if rw is already wrapped
Click to show internal directories.
Click to hide internal directories.