ordspv
    Preparing search index...

    Function readBodyCapped

    • Read a Response body, rejecting once maxBytes is exceeded. The declared Content-Length is used only to fail fast; the enforced bound is the running count of received bytes.

      Parameters

      • res: Response
      • maxBytes: number
      • context: string
      • Optionalcontroller: AbortController

      Returns Promise<Uint8Array<ArrayBufferLike>>