Documentation ¶
Index ¶
- Variables
- func AccessLog(next http.Handler) http.Handler
- func Cache(expiration time.Duration) func(next http.Handler) http.Handler
- func GetMethodOnly(next http.Handler) http.Handler
- func MiddlewareChain(handler http.Handler, midllewares ...Middleware) http.Handler
- func RestrictListing(next http.Handler) http.Handler
- type Middleware
- type Options
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoOptions = errors.New("no options provided")
)
Functions ¶
func GetMethodOnly ¶
GetMethodOnly - return 405 for all except GET
func MiddlewareChain ¶
func MiddlewareChain(handler http.Handler, midllewares ...Middleware) http.Handler
MiddlewareChain - chain multiple middlewares
Types ¶
Click to show internal directories.
Click to hide internal directories.