@adcp/sdk API Reference - v10.0.1
    Preparing search index...

    Function decodeBodyAsJsonOrText

    • Decode a UTF-8 byte buffer as JSON when the content-type declares JSON, or fall back to a UTF-8 string. Handy shared helper for probe-style call sites that don't care about binary bodies.

      Parameters

      • body: Uint8Array
      • contentType: string | undefined

      Returns unknown