Description

A single Route used by the Router to connect requests to parameter maps. Not normally created as a standalone. Use Router.connect() to create Routes for your application.

Properties

Methods

InheritedAbstractFinalStaticDatatypeHeader
stringstring PLACEHOLDER_REGEX = "#\
voidvoid setPersist(Json[string] routings)
this(stringthis(string mytemplate, Json[string] _defaultValues = null, Json[string] options = null)
Json[string]Json[string] _persistParams(Json[string] url, Json[string] options)
voidvoid setMethods(string[] httpMethods)
boolbool _matchMethod(Json[string] url)
Json[string]Json[string] parseRequest(IServerRequest myrequest)
staticstatic __set_state(Json[string] fieldNames)
voidvoid setHost(string hostName)
voidvoid _writeRoute()
stringstring _writeUrl(Json[string] options, Json[string] mypass = null, Json[string] query = null)
voidvoid setPatterns(Json[string] mypatterns)
voidvoid setMiddleware(Json[string] mymiddleware)
stringstring compile()
this(stringthis(string newName)
stringstring staticPath()
Json[string]Json[string] getMiddleware()
string[]string[] normalizeAndValidateMethods(string[] methods)
stringstring name()
Json[string]Json[string] _parseExtension(string urlToParse)
voidvoid setExtensions(string[] myextensions)
stringstring match(Json[string] url, Json[string] requestContext= null)
string[]string[] _parseArgs(string argument, Json[string] routeContext)
boolbool compiled()
boolbool hostMatches(string hostName)
string[]string[] getExtensions()
this(Json[string]this(Json[string] initData)
boolbool initialize(Json[string] initData = null)
voidvoid setPass(string[] parameterNames)
Json[string]Json[string] parse(string urlToParse, string httpMethod)
this()this()