ServerResponse.redirect constructor
Creates a redirect response.
Implementation
factory ServerResponse.redirect(Uri location, {int status = 302}) =>
ServerResponse(
status: status,
headers: Headers.single(<String, String>{
'location': location.toString(),
}),
);