Documentation
    Preparing search index...

    Function toRequestResponse

    To maintain backwards compatibility, we are exporting the RequestCommand exports which were moved to the client package

    • Converts a fetch Response object into a request-like response object.

      Parameters

      • response: Response

        The fetch Response to convert.

      • OptionalresolveWithFullResponse: boolean

        Return the full Response object, otherwise abbreviate the response.

      • Optionalsimple: boolean

        Outright fail if anything other than a successful response is returned in the response.

      Returns Promise<Response | AbbreviatedResponse>

      A promise that resolves to a RequestResponse object.