Documentation ¶
Index ¶
- func Errorf(w http.ResponseWriter, statusCode int, msg string, args ...interface{})
- type HttpWriteInterceptor
- func (c *HttpWriteInterceptor) BytesWritten() int64
- func (c *HttpWriteInterceptor) CloseNotify() <-chan bool
- func (c *HttpWriteInterceptor) Flush()
- func (c *HttpWriteInterceptor) Header() http.Header
- func (c *HttpWriteInterceptor) Hijack() (net.Conn, *bufio.ReadWriter, error)
- func (c *HttpWriteInterceptor) Status() int
- func (c *HttpWriteInterceptor) Write(data []byte) (int, error)
- func (c *HttpWriteInterceptor) WriteHeader(code int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpWriteInterceptor ¶
type HttpWriteInterceptor struct { http.ResponseWriter // contains filtered or unexported fields }
func NewHttpWriteInterceptor ¶
func NewHttpWriteInterceptor(w http.ResponseWriter) *HttpWriteInterceptor
func (*HttpWriteInterceptor) BytesWritten ¶
func (c *HttpWriteInterceptor) BytesWritten() int64
func (*HttpWriteInterceptor) CloseNotify ¶
func (c *HttpWriteInterceptor) CloseNotify() <-chan bool
func (*HttpWriteInterceptor) Flush ¶
func (c *HttpWriteInterceptor) Flush()
func (*HttpWriteInterceptor) Header ¶
func (c *HttpWriteInterceptor) Header() http.Header
func (*HttpWriteInterceptor) Hijack ¶
func (c *HttpWriteInterceptor) Hijack() (net.Conn, *bufio.ReadWriter, error)
func (*HttpWriteInterceptor) Status ¶
func (c *HttpWriteInterceptor) Status() int
func (*HttpWriteInterceptor) WriteHeader ¶
func (c *HttpWriteInterceptor) WriteHeader(code int)
Click to show internal directories.
Click to hide internal directories.