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)
| 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 | |
| 47 | const ( |
no outgoing calls