Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Recoverer ¶
func Recoverer(h web.ErrorHandlerFunc) web.MiddlewareHandlerFunc
func ServerTimer ¶ added in v0.7.0
func ServerTimer(allowed func(r *http.Request) bool) web.MiddlewareHandlerFunc
Middleware to enable Server-Time if a given function agrees, or unconditionally if none given
func ServerTimerMetric ¶ added in v0.8.0
func ServerTimerMetric(name string) web.MiddlewareHandlerFunc
Middleware to produce a Server-Timer metric
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.