redirectStatus
The HTTP status of a redirect signal: the one given to redirect, or 302 for a signal made by the router's own redirect().
The HTTP status of a redirect signal: the one given to redirect, or 302 for a signal
made by the router's own redirect().
Import#
ts
import { redirectStatus } from "@shadow-js/dusk";
Signature#
ts
function redirectStatus(signal: RedirectSignal): RedirectStatus
Parameters#
| Name | Description |
|---|---|
signal |
A redirect signal. |
Returns#
The status.
Examples#
ts
redirectStatus(redirect("/a", { status: 308 })); // 308