Skip to main content
Module

x/knight/mod.ts>redirectTemp

MVC web server framework for Deno 🦕 built on Oak
Latest
function redirectTemp
import { redirectTemp } from "https://deno.land/x/knight@2.3.0/mod.ts";

Redirect the client to the given temporary location URL with a status code of 307 (Temporary Redirect). The request method is not allowed to be changed when reissuing the original request.

Parameters

response: Response

The response object to use

location: string

The location to send back