Documentation ¶
Overview ¶
Package response provides wrapper for http.response.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct { http.ResponseWriter // The underlying ResponseWriter. // contains filtered or unexported fields }
Writer wraps http.ResponseWriter for extra features.
func NewWriter ¶
func NewWriter(writer http.ResponseWriter) *Writer
NewWriter creates and returns a new Writer.
func (*Writer) Hijack ¶
Hijack implements the interface function of http.Hijacker.Hijack.
func (*Writer) IsHeaderWrote ¶
IsHeaderWrote returns if the header status is written.
func (*Writer) IsHijacked ¶
IsHijacked returns if the connection is hijacked.
Click to show internal directories.
Click to hide internal directories.