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 ¶
Middleware is a HTTP middleware.
func CombineMiddlewares ¶
func CombineMiddlewares(ms ...Middleware) Middleware
CombineMiddlewares combine multi Middleware into a single Middleware.
Click to show internal directories.
Click to hide internal directories.