An exception subclass used by routing and application code to trigger a redirect. The URL and status code are provided as constructor arguments. ``` throw new DRedirectException("http://example.com/some/path", 301); ``` Additional headers can also be provided in the constructor, or using the headers() method.
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
this(string | this(string redirectUrl, int statusCode = 302, Json[string] headerToSend = null) |