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

Method GET

server/router.go:88–90  ·  view source on GitHub ↗

GET adds GET route

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

Source from the content-addressed store, hash-verified

86
87// GET adds GET route
88func (r *Router) GET(path string, handler RouteHandler, middlewares ...Middleware) *route {
89 return r.add(http.MethodGet, path, handler, middlewares...)
90}
91
92// OPTIONS adds OPTIONS route
93func (r *Router) OPTIONS(path string, handler RouteHandler, middlewares ...Middleware) *route {

Callers 15

BuildRouterMethod · 0.95
TestWithCORSMethod · 0.45
TestWithSecretMethod · 0.45
TestIntoSuccessMethod · 0.45
TestIntoWithErrorMethod · 0.45
TestHTTPMethodsMethod · 0.45
TestMiddlewareOrderMethod · 0.45
TestServeHTTPMethod · 0.45
TestRequestIDMethod · 0.45

Calls 1

addMethod · 0.95

Tested by 15

TestWithCORSMethod · 0.36
TestWithSecretMethod · 0.36
TestIntoSuccessMethod · 0.36
TestIntoWithErrorMethod · 0.36
TestHTTPMethodsMethod · 0.36
TestMiddlewareOrderMethod · 0.36
TestServeHTTPMethod · 0.36
TestRequestIDMethod · 0.36