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

Method OPTIONS

server/router.go:93–95  ·  view source on GitHub ↗

OPTIONS adds OPTIONS route

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

Source from the content-addressed store, hash-verified

91
92// OPTIONS adds OPTIONS route
93func (r *Router) OPTIONS(path string, handler RouteHandler, middlewares ...Middleware) *route {
94 return r.add(http.MethodOptions, path, handler, middlewares...)
95}
96
97// HEAD adds HEAD route
98func (r *Router) HEAD(path string, handler RouteHandler, middlewares ...Middleware) *route {

Callers 2

BuildRouterMethod · 0.95
TestHTTPMethodsMethod · 0.80

Calls 1

addMethod · 0.95

Tested by 1

TestHTTPMethodsMethod · 0.64