WebController.redirectTo

Redirects the response to a specific url.

class WebController(TView)
final
redirectTo
(
string url
,
HttpStatus status = HttpStatus.found
)

Parameters

url string

The url to redirect to.

status HttpStatus

The status of the redirection. (Default is HTTPStatus.Found)

Return Value

Type: Status

The status required for the redirection to work properly. (Status.end)

Meta