Redirect route will perform an immediate redirect. Redirect routes are useful when you want to have Routing layer redirects occur in your application, for when URLs move. Redirection is signalled by an exception that halts route matching and defines the redirect URL and status code.
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
void | void setStatus(int statusCode) | ||||
Json[string] | Json[string] parse(string urlToParse, string httpMethod = null) | ||||
this(string | this(string templateText, Json[string] defaults = [], Json[string] options = null) | ||||
string | string match(Json[string] urlParameters, Json[string] contextParameters = null) |