middleware

package
v0.0.0-...-d36a87a Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(handler http.Handler, ms ...Middleware) http.Handler

Handler returns a new http.Handler contains the original handler and Middlewares.

func HandlerFunc

func HandlerFunc(fn func(http.ResponseWriter, *http.Request), ms ...Middleware) http.Handler

HandlerFunc returns a new http.Handler contains the original handler function and Middlewares.

Types

type Middleware

type Middleware func(next http.Handler) http.Handler

Middleware is a HTTP middleware.

func CombineMiddlewares

func CombineMiddlewares(ms ...Middleware) Middleware

CombineMiddlewares combine multi Middleware into a single Middleware.

Jump to

Keyboard shortcuts

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