ReadableStream
ReadableStream: {(
underlyingSource
,strategy?
):ReadableStream
<Uint8Array
<ArrayBufferLike
>>; <R
>(underlyingSource?
,strategy?
):ReadableStream
<R
>;prototype
:ReadableStream
; }
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2231
This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.
Type Declaration
Section titled “Type Declaration”Call Signature
Section titled “Call Signature”new ReadableStream(
underlyingSource
,strategy?
):ReadableStream
<Uint8Array
<ArrayBufferLike
>>
Parameters
Section titled “Parameters”underlyingSource
Section titled “underlyingSource”strategy?
Section titled “strategy?”QueuingStrategy
<Uint8Array
<ArrayBufferLike
>>
Returns
Section titled “Returns”ReadableStream
<Uint8Array
<ArrayBufferLike
>>
Call Signature
Section titled “Call Signature”new ReadableStream<
R
>(underlyingSource?
,strategy?
):ReadableStream
<R
>
Parameters
Section titled “Parameters”underlyingSource?
Section titled “underlyingSource?”strategy?
Section titled “strategy?”Returns
Section titled “Returns”prototype
Section titled “prototype”prototype:
ReadableStream