コード例 #1
0
ファイル: archetype.go プロジェクト: TShadwell/fweight
func (h HTTPHandler) RouteHTTP(_ *http.Request) route.Router {
	return route.Handle(h)
}
コード例 #2
0
ファイル: resource.go プロジェクト: TShadwell/fweight
func (r Resource) RouteHTTP(_ *http.Request) route.Router { return route.Handle(r) }
コード例 #3
0
ファイル: csp.go プロジェクト: TShadwell/fweight
//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))
}