Function createRedirectResponse
- createRedirectResponse(
location: string | NavigateInstruction,
status?: HTTPRedirectCode,
options?: { body?: string; headers?: Record<string, string> | Headers },
): WebResponseParameters
- location: string | NavigateInstruction
Target URL/instruction
- status: HTTPRedirectCode = HTTPSuccessCode.SeeOther
Status code to use (default is 303 See Other)
Optionaloptions: { body?: string; headers?: Record<string, string> | Headers }Optionals for body and headers
Returns WebResponse
- location: string | NavigateInstruction
Create a redirect response