createRedirectResponse
Summary
Creates a redirect Response.
Aliases
redirect
Signature
function createRedirectResponse(
location: string | URL,
init: number | ResponseInit,
): Response;
Params
location
The location to redirect to
init
The ResponseInit object for the response, or a status code
Returns
A Response object with a redirect header