middleware

package
v0.0.0-...-25250c4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeLogger

func MakeLogger() func(inner http.Handler) http.Handler

func MkMiddleware

func MkMiddleware(f func(w http.ResponseWriter, r *http.Request)) http.Handler

Types

type RWWrapper

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

func (*RWWrapper) Write

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

func (*RWWrapper) WriteHeader

func (r *RWWrapper) WriteHeader(status int)

Jump to

Keyboard shortcuts

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