redirect abstract method

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

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

void redirect(String url, {int status = HttpStatus.movedTemporarily});