Exemple #1
0
func (h HTTPHandler) RouteHTTP(_ *http.Request) route.Router {
	return route.Handle(h)
}
Exemple #2
0
func (r Resource) RouteHTTP(_ *http.Request) route.Router { return route.Handle(r) }
Exemple #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))
}