IO Wallet SDK
    Preparing search index...

    Function parseRawHttpResponse

    • Utility function to parse a raw HTTP response as JSON if supported, otherwise as text.

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      • response: Response

        Raw HTTP response to parse.

      Returns Promise<T> | Promise<string>

      Parsed JSON for JSON responses, otherwise response text.