response

package
v0.6.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaptureWriter

type CaptureWriter struct {
	http.ResponseWriter
	StatusCode int
}

CaptureWriter extends http.ResponseWriter

func (*CaptureWriter) GetStatusCode

func (w *CaptureWriter) GetStatusCode() int

GetStatusCode return w.StatusCode

func (*CaptureWriter) Header

func (w *CaptureWriter) Header() http.Header

Header calls http.Writer.Header()

func (*CaptureWriter) Write

func (w *CaptureWriter) Write(b []byte) (int, error)

func (*CaptureWriter) WriteHeader

func (w *CaptureWriter) WriteHeader(code int)

WriteHeader calls http.Writer.WriteHeader(code)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL