response

package
v0.0.0-...-506b656 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPResponse

func HTTPResponse(w http.ResponseWriter, status int, format string, args ...interface{})

func IsAlive

func IsAlive(w http.ResponseWriter) bool

func NewResponseWriter

func NewResponseWriter(w http.ResponseWriter) http.ResponseWriter

Types

type ResponseWriter

type ResponseWriter struct {
	http.ResponseWriter

	HTTPStatus     int
	HTTPError      string
	ResponseLength int64
	// contains filtered or unexported fields
}

ResponseWriter is a wrapper for http.ResponseWriter

func (*ResponseWriter) CloseNotify

func (resp *ResponseWriter) CloseNotify() <-chan bool

func (*ResponseWriter) Write

func (resp *ResponseWriter) Write(b []byte) (n int, err error)

func (*ResponseWriter) WriteHeader

func (resp *ResponseWriter) WriteHeader(status int)

Jump to

Keyboard shortcuts

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