MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / HEAD

Method HEAD

server/router.go:98–100  ·  view source on GitHub ↗

HEAD adds HEAD route

(path string, handler RouteHandler, middlewares ...Middleware)

Source from the content-addressed store, hash-verified

96
97// HEAD adds HEAD route
98func (r *Router) HEAD(path string, handler RouteHandler, middlewares ...Middleware) *route {
99 return r.add(http.MethodHead, path, handler, middlewares...)
100}
101
102// Paths returns the paths of all routes in the router, in order.
103func (r *Router) Paths() []string {

Callers 2

BuildRouterMethod · 0.95
TestHTTPMethodsMethod · 0.80

Calls 1

addMethod · 0.95

Tested by 1

TestHTTPMethodsMethod · 0.64