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

Method Any

echo.go:563–565  ·  view source on GitHub ↗

Any registers a new route for all HTTP methods (supported by Echo) and path with matching handler in the router with optional route-level middleware. Note: this method only adds specific set of supported HTTP methods as handler and is not true "catch-any-arbitrary-method" way of matching requests.

(path string, handler HandlerFunc, middleware ...MiddlewareFunc)

Source from the content-addressed store, hash-verified

561// Note: this method only adds specific set of supported HTTP methods as handler and is not true
562// "catch-any-arbitrary-method" way of matching requests.
563func (e *Echo) Any(path string, handler HandlerFunc, middleware ...MiddlewareFunc) RouteInfo {
564 return e.Add(RouteAny, path, handler, middleware...)
565}
566
567// Match registers a new route for multiple HTTP methods and path with matching
568// handler in the router with optional route-level middleware. Panics on error.

Callers 6

TestGroup_AnyFunction · 0.45
TestEcho_AnyFunction · 0.45

Calls 1

AddMethod · 0.95

Tested by 6

TestGroup_AnyFunction · 0.36
TestEcho_AnyFunction · 0.36