kinetex - v1.0.0-rc.1
    Preparing search index...

    Function readRawBody

    • Read a raw response body stream into a Uint8Array, enforcing an optional size limit.

      Parameters

      • stream: ReadableStream<Uint8Array<ArrayBufferLike>> | null

        The response body stream to read

      • maxBytes: number

        Maximum bytes to read (0 = unlimited)

      • _url: string

        Request URL (reserved for debugging/logging in error messages)

      • Optionalsignal: AbortSignal | null

        AbortSignal for cancellation

      Returns Promise<Uint8Array<ArrayBufferLike>>

      Complete body as a single Uint8Array

      If the body exceeds maxBytes

      If reading is aborted