response

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultResponseHandler

func DefaultResponseHandler(w http.ResponseWriter, r *http.Request, err error)

DefaultResponseHandler of http

Types

type Handler

type Handler func(w http.ResponseWriter, r *http.Request, err error)

Handler for http

type WrapWriter

type WrapWriter struct {
	StatusCode int
	Size       int64

	http.ResponseWriter
	// contains filtered or unexported fields
}

WrapWriter of response

func (*WrapWriter) Write

func (ww *WrapWriter) Write(b []byte) (n int, err error)

func (*WrapWriter) WriteHeader

func (ww *WrapWriter) WriteHeader(statusCode int)

WriteHeader for response

Jump to

Keyboard shortcuts

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