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.
- 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.
- Creates a reader of the type specified by the
modeoption, and locks the stream to the new reader. While the stream is locked, no other reader can be acquired until this one is released.
- Provides a chaninable way of piping the current stream through a transform stream or any other writable/readable pair.
- Pipes the current ReadableStream to a given
WritableStreamand returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
The definition of 'ReadableStream' in that specification.
|Living Standard||Initial definition|
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari (WebKit)|
|Feature||Android Webview||Chrome for Android||Firefox Mobile (Gecko)||Firefox OS||IE Mobile||Opera Mobile||Safari Mobile|