import { Response } from "https://deno.land/x/oak_sessions@v4.1.2/deps.ts";
Sets the response to redirect to the supplied url
.
If the .status
is not currently a redirect status, the status will be set
to 302 Found
.
The body will be set to a message indicating the redirection is occurring.
Parameters
url: string | URL
Sets the response to redirect back to the referrer if available, with an
optional alt
URL if there is no referrer header on the request. If there
is no referrer header, nor an alt
parameter, the redirect is set to /
.
If the .status
is not currently a redirect status, the status will be set
to 302 Found
.
The body will be set to a message indicating the redirection is occurring.
Parameters
optional
alt: string | URL