Esempio n. 1
0
func (h HTTPHandler) RouteHTTP(_ *http.Request) route.Router {
	return route.Handle(h)
}
Esempio n. 2
0
func (r Resource) RouteHTTP(_ *http.Request) route.Router { return route.Handle(r) }
Esempio n. 3
0
//Returns the Handler that would result from applying .Middleware to the given handler.
func (c ContentSecurityPolicy) RouteHandler(h http.Handler) route.Handler {
	return route.Handle(c.Middleware(h))
}