Skip to main content
Module

x/mith/mod.ts>Response#redirect

A middleware framework for Deno's http/s server.
Latest
method Response.prototype.redirect
import { Response } from "https://deno.land/x/mith@v0.9.6/mod.ts";

Redirects the user to the chosen URL

Parameters

url: string | URL | REDIRECT_BACK

string or url or symbol redirect backwards

optional
alt: string | URL = [UNSUPPORTED]

string or url to be used in case of unexisting "Referrer" when redirecting the user backwards