Skip to main content
Module

x/http_fns/response/see_other.ts>seeOther

A bunch of functions for building HTTP servers
Go to Latest
function seeOther
import { seeOther } from "https://deno.land/x/http_fns@v0.0.27/response/see_other.ts";

Redirect with a "303 See Other" response.

This is commonly used after a mutation request, such as a POST, PUT, PATCH, or DELETE to redirect the browser via a GET request to a page to view the outcome of the operation, so that a browser refresh will not issue another mutation request.

Parameters

location: string | URL
optional
headersInit: HeadersInit