MCPcopy Create free account
hub / github.com/kataras/iris / SetCurrentRoute

Method SetCurrentRoute

context/context.go:509–511  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

507// It's being initialized by the Router.
508// See `Exec` or `SetHandlers/AddHandler` methods to simulate a request.
509func (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.

Callers 5

HandleRequestMethod · 0.80
overlapRouteFunction · 0.80
HandleRequestMethod · 0.80
FireErrorCodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected