ReadableStream

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.

The ReadableByteStream interface of the the Fetch API represents a readable stream of byte data.

Methods

ReadableStream.cancel()
Cancels the stream, signaling a loss of interest in the stream by a consumer. The supplied reason argument will be given to the underlying source, which may or may not use it.
ReadableStream.getReader()
Creates a reader of the type specified by the mode option, and locks the stream to the new reader. While the stream is locked, no other reader can be acquired until this one is released.
ReadableStream.pipeThrough()
Provides a chaninable way of piping the current stream through a transform stream or any other writable/readable pair.
ReadableStream.pipeTo()
Pipes the current ReadableStream to a given WritableStream and returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.

Specifications

Specification Status Comment
Streams
The definition of 'ReadableStream' in that specification.
Living Standard Initial definition

Browser Compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support

52

? ?

39

?
pipeThrough and pipeTo methods 59 ? ? 46 ?
Feature Android Webview Chrome for Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile
Basic support 52 52 ? ? ? 39 ?
pipeThrough and pipeTo methods 59 59 ? ? ? 46 ?

Document Tags and Contributors

 Contributors to this page: jpmedley, jswisher, bunnybooboo
 Last updated by: jpmedley,