MCPcopy Index your code
hub / github.com/labstack/echo / OPTIONS

Method OPTIONS

group.go:47–49  ·  view source on GitHub ↗

OPTIONS implements `Echo#OPTIONS()` for sub-routes within the Group. Panics on error.

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

Source from the content-addressed store, hash-verified

45
46// OPTIONS implements `Echo#OPTIONS()` for sub-routes within the Group. Panics on error.
47func (g *Group) OPTIONS(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo {
48 return g.Add(http.MethodOptions, path, h, m...)
49}
50
51// PATCH implements `Echo#PATCH()` for sub-routes within the Group. Panics on error.
52func (g *Group) PATCH(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.95

Tested by

no test coverage detected