Setu-TS
    Preparing search index...

    Function collectStream

    • Collects a web Response body incrementally via a ReadableStream reader.

      Reads each chunk into chunks, decodes the concatenation into text with TextDecoder. Throws if response.body is null.

      Parameters

      • response: Response

        A streaming web Response

      Returns Promise<StreamingBody>

      The collected chunks and decoded text

      If response.body is null

      0.1.0