SetCurrentRoute sets the route internally, See `GetCurrentRoute()` method too. It's being initialized by the Router. See `Exec` or `SetHandlers/AddHandler` methods to simulate a request.
(route RouteReadOnly)
| 507 | // It's being initialized by the Router. |
| 508 | // See `Exec` or `SetHandlers/AddHandler` methods to simulate a request. |
| 509 | func (ctx *Context) SetCurrentRoute(route RouteReadOnly) { |
| 510 | ctx.currentRoute = route |
| 511 | } |
| 512 | |
| 513 | // GetCurrentRoute returns the current "read-only" route that |
| 514 | // was registered to this request's path. |
no outgoing calls
no test coverage detected