drupflare/worker - v1.0.4
    Preparing search index...

    Function readBounded

    • Reads a body whole, counting as it arrives, and stops at the first chunk that crosses limit. The rest of the stream is cancelled unread, so a chunked or multipart body with no (or a false) length is bounded by what was actually received. 0 means no ceiling.

      Parameters

      • request: Request
      • limit: number

      Returns Promise<ArrayBuffer>