response

package
v0.0.0-...-c103bd4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bitmap

func Bitmap(w http.ResponseWriter) int

Bitmap returns the bitmap of http.ResponseWriter.

bitmap = (io.ReaderFrom, stringWriter, http.Flusher, http.Hijacker, http.CloseNotifier)

Types

type ResponseWriter

type ResponseWriter interface {
	http.ResponseWriter
	WroteHeader() bool // WroteHeader returns true if header has been written, otherwise false.
	Status() int       // Status returns the response status code of the current request.
	Written() int64    // Written returns number of bytes written in body.
}

type ResponseWriter2

type ResponseWriter2 interface {
	ResponseWriter
	Reset(w http.ResponseWriter)
}

func NewResponseWriter2

func NewResponseWriter2(bitmap int) ResponseWriter2

Jump to

Keyboard shortcuts

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