RedirectOptions
Options of redirect.
Options of redirect.
Import#
ts
import type { RedirectOptions } from "@shadow-js/dusk";
Signature#
ts
interface RedirectOptions {
/** The HTTP status when the redirect is answered by a server. Defaults to 302. */
readonly status?: RedirectStatus;
/** Replace the history entry on the client. Defaults to `true`, like the router. */
readonly replace?: boolean;
}
Members#
| Name | Type | Description |
|---|---|---|
status? |
readonly status?: RedirectStatus |
The HTTP status when the redirect is answered by a server. Defaults to 302. |
replace? |
readonly replace?: boolean |
Replace the history entry on the client. Defaults to true, like the router. |