import { redirect } from "https://deno.land/x/netzo@0.4.49/plugins/auth/utils/http.ts";
Returns a response that redirects the client to the given location (URL).
Examples
Example 1
Example 1
import { redirect } from "../../../../auth/utils/http.ts";
redirect("/new-page"); // Redirects client to `/new-page` with HTTP status 303
redirect("/new-page", 301); // Redirects client to `/new-page` with HTTP status 301
Parameters
optional
status: Status.Created | RedirectStatus = [UNSUPPORTED]HTTP status