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

Method Route

router.go:44–44  ·  view source on GitHub ↗

Route searches Router for matching route and applies it to the given context. In case when no matching method was not found (405) or no matching route exists for path (404), router will return its implementation of 405/404 handler function. Router must populate Context during Router.Route call with

(c *Context)

Source from the content-addressed store, hash-verified

42 // - Context.InitializeRoute() (IMPORTANT! to reduce allocations use same slice that c.PathValues() returns)
43 // - optionally can set additional information to Context with Context.Set()
44 Route(c *Context) HandlerFunc
45}
46
47const (

Implementers 2

DefaultRouterrouter.go
concurrentRouterrouter_concurrent.go

Calls

no outgoing calls