redirect method

  1. @override
void redirect(
  1. String uri, {
  2. int status = HttpStatus.movedTemporarily,
})
override

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 and https://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);
}