Documentation ¶
Overview ¶
Package middleware middlewares for Mohawk
Package middleware http decorators
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
func Append(core http.HandlerFunc, handlers ...Decorator) http.HandlerFunc
Append concat a list of MiddleWares into the router routing table
Types ¶
type Decorator ¶
type Decorator func(h http.HandlerFunc) http.HandlerFunc
Decorator takes a http handler and wrap it with added functionality
func GzipDecodeDecorator ¶
func GzipDecodeDecorator() Decorator
GzipDecodeDecorator addes a gzip decoder to reader
func GzipEncodeDecorator ¶
func GzipEncodeDecorator() Decorator
GzipEncodeDecorator addes a gzip encoder to Writer
Click to show internal directories.
Click to hide internal directories.