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) IsHeaderWrote ¶
IsHeaderWrote returns if the header status is written.
func (*Writer) IsHijacked ¶
IsHijacked returns if the connection is hijacked.
func (*Writer) WriteHeader ¶
WriteHeader implements the interface of http.ResponseWriter.WriteHeader.
Click to show internal directories.
Click to hide internal directories.