Description

Parses the request URL into controller, action, and parameters. Uses the connected routes to match the incoming URL string to parameters that will allow the request to be dispatched. Also handles converting parameter lists into URL strings, using the connected routes. Routing allows you to decouple the way the world interacts with your application (URLs) and the implementation (controllers and actions). ### Connecting routes Connecting routes is done using Router.connect(). When parsing incoming requests or reverse matching parameters, routes are enumerated in the order they were connected. For more information on routes and how to connect them see Router.connect().

Properties

Methods

InheritedAbstractFinalStaticDatatypeHeader
arrayarray parseRoutePath(string url)
stringstring defaultRouteClass(string routeclassname = null)
Json[string]Json[string] _applyUrlFilters(Json[string] url)
DServerRequestDServerRequest getRequest()
stringstring fullBaseUrl(string baseUrl = null)
Json[string]Json[string] reverseToArray(ServerRequest|array params)
voidvoid reload()
stringstring reverse(DServerRequest/* array */ params, bool isFull = false)
voidvoid setRouteCollection(RouteCollection routeCollection)
RouteBuilderRouteBuilder createRouteBuilder(string path, Json[string] options = null)
voidvoid setRequest(DServerRequest myrequest)
STRINGAASTRINGAA getNamedExpressions()
voidvoid resetRoutes()
stringstring pathUrl(string path, Json[string] params = [], bool isFull = false)
stringstring normalize(string[] url = "/")
Json[string]Json[string] unwrapShortString(Json[string] url)
boolbool routehasKey(string[] url = null, bool isFull = false)
voidvoid addUrlFilter(Closure myfunction)
string[]string[] extensions(string[]/* string */ myextensions = null, bool shouldMerge = true)
RouteCollectionRouteCollection getRouteCollection()
Json[string]Json[string] parseRequest(ServerRequest myrequest)
stringstring url(/* IUri| */string[] url = null, bool isFull = false)
Route[]Route[] routes()