Technology
ReadableStream
The Streams API interface for reading data chunks sequentially and asynchronously.
ReadableStream is a core component of the Web Streams API: it represents a source of streaming data. This object allows consumers to process data in small, manageable chunks as they arrive, rather than waiting for the complete payload (e.g., a 500MB file). You acquire an instance via sources like the Fetch API (`Response.body`) or by constructing a custom stream. Consumers use the `getReader()` method to lock the stream and access a reader (like `ReadableStreamDefaultReader`). The stream supports powerful operations: use `pipeTo()` to efficiently transfer data to a `WritableStream`, or use `tee()` to split the stream into two identical, independent branches for concurrent processing.
Related technologies
Recent Talks & Demos
Showing 1-1 of 1