redirect method
Send a temporary redirect to the specified redirect URL. *
-
url
- the location to redirect to. It can be an URI or URL, such as
/login?whatever
andhttps://quire.io/features
.-
Notice: you shall invoke this method instead of
HttpResponse.redirect()
, - since
HttpResponse.redirect()
will close the connection (which - will be called automatically under Rikulo Stream).
Implementation
@override
void redirect(String uri, {int status = HttpStatus.movedTemporarily}) {
origin.redirect(_toCompleteUrl(request, uri), status: status);
}