atlantis · Routing
class Router
since 0.1.0-alpha.1linux
Fields
finalized
bool finalizedhandlersByKey
Map<string, (Http::Context) => HttpResponse> handlersByKeykeyIndex
Map<string, int> keyIndexpendingAuthMode
Map<string, int> pendingAuthModependingAuthRole
Map<string, string> pendingAuthRoleroot
RouteNode rootrouteList
Methods
authModeOf
authModeOf(string key) -> intauthRoleOf
authRoleOf(string key) -> stringcheckParamCoverage
checkParamCoverage(RouteRec rec) -> voiddispatchHandler
dispatchHandler() -> (Http::Context) => HttpResponseextractParams
finalize
finalize(string authDefault) -> voidhandlerOf
handlerOf(string key) -> (Http::Context) => HttpResponsemarkAuth
markAuth(string controller, string action, int mode, string role) -> voidmatchNode
recOf
recOf(string key) -> RouteRecrecord
record(RouteRec rec, (Http::Context) => HttpResponse h) -> Routerresolve
resolve(string verb, string rawPath) -> MatchResultresolveMiddleware
resolveMiddleware() -> (Http::Context, (Http::Context) => HttpResponse) => HttpResponse