MCPcopy
hub / github.com/labstack/echo / OPTIONS

Method OPTIONS

echo.go:520–522  ·  view source on GitHub ↗

OPTIONS registers a new OPTIONS route for a path with matching handler in the router with optional route-level middleware. Panics on error.

(path string, h HandlerFunc, m ...MiddlewareFunc)

Source from the content-addressed store, hash-verified

518// OPTIONS registers a new OPTIONS route for a path with matching handler in the
519// router with optional route-level middleware. Panics on error.
520func (e *Echo) OPTIONS(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo {
521 return e.Add(http.MethodOptions, path, h, m...)
522}
523
524// PATCH registers a new PATCH route for a path with matching handler in the
525// router with optional route-level middleware. Panics on error.

Callers 2

TestGroup_OPTIONSFunction · 0.45
TestEchoOptionsFunction · 0.45

Calls 1

AddMethod · 0.95

Tested by 2

TestGroup_OPTIONSFunction · 0.36
TestEchoOptionsFunction · 0.36