createRedirectResponse | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function createRedirectResponse

    • Create a redirect response

      Parameters

      • location: string | NavigateInstruction

        Target URL/instruction

      • Optionalstatus: HTTPRedirectCode

        Status code to use (default for redirects is 303 See Other)

      • Optionaloptions: { body?: string; headers?: Record<string, string> | Headers }

        Optionals for body and headers

      Returns WebResponse