Definition
Streams Standard defines ReadableStream
[Exposed=*, Transferable]
interface ReadableStream {
constructor(optional object underlyingSource, optional QueuingStrategy strategy = {});
static ReadableStream from(any asyncIterable);
readonly attribute boolean locked;
Promise<undefined> cancel(optional any reason);
ReadableStreamReader getReader(optional ReadableStreamGetReaderOptions options = {});
ReadableStream pipeThrough(ReadableWritablePair transform, optional StreamPipeOptions options = {});
Promise<undefined> pipeTo(WritableStream destination, optional StreamPipeOptions options = {});
sequence<ReadableStream> tee();
async iterable<any>(optional ReadableStreamIteratorOptions options = {});
};
Methods and attributes that return objects implementing ReadableStream
ReadableStream()
Body.body
ReadableStream.from()
ReadableStream.pipeThrough()
ReadableStream.tee()
TransformStream.readable
GenericTransformStream.readable
SerialPort.readable
Blob.stream()
MediaStreamTrackProcessor.readable
RTCRtpScriptTransformer.readable
WebTransportDatagramDuplexStream.readable
WebTransport.incomingBidirectionalStreams
WebTransport.incomingUnidirectionalStreams
Referring IDL interfaces/dictionaries
Referring specifications
- Fetch Standard refers to
ReadableStream
- CSS Parser API refers to
ReadableStream
- Web Serial API refers to
ReadableStream
- File API refers to
ReadableStream
- MediaStreamTrack Insertable Media Processing using Streams refers to
ReadableStream
- WebCodecs refers to
ReadableStream
- WebRTC Encoded Transform refers to
ReadableStream
- WebTransport refers to
ReadableStream