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

    Function createRedirectResponse

    • Create a redirect response

      Parameters

      • 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