The URL to which the client should be redirected.
The HTTP status code for the redirect, defaults to 302.
Optional response initialization options.
A Response object with the redirect information.
Example usage:
import { start, router, redirect, text } from "@pulsar-http/core";
const routes = [
router.get("/old", async () => redirect("/new")),
router.get("/new", async () => text("New Page")),
];
start({ routes });
Creates a redirect response.