middleware

package
v0.0.0-...-446f3a2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApacheFormatPattern = "%s - %s [%s] \"%s\" %d %d %d\n"

Functions

func LoggerMiddleware

func LoggerMiddleware(next http.Handler) http.Handler

func RecoverMiddleware

func RecoverMiddleware(next http.Handler) http.Handler

Types

type ApacheLogRecord

type ApacheLogRecord struct {
	http.ResponseWriter
	// contains filtered or unexported fields
}

https://gist.github.com/cespare/3985516

func (*ApacheLogRecord) Log

func (r *ApacheLogRecord) Log(out io.Writer)

func (*ApacheLogRecord) Write

func (r *ApacheLogRecord) Write(p []byte) (int, error)

func (*ApacheLogRecord) WriteHeader

func (r *ApacheLogRecord) WriteHeader(status int)

Jump to

Keyboard shortcuts

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