← Back to release summary

Streams API: Piping

Category
Network / Connectivity
Type
New or changed feature
Status
Enabled by default (Chrome 59)
Intent stage
None

Summary

ReadableStream's pipeTo() is the standard way to compose readable and writable streams. It reads data from the ReadableStream and writes it to a WritableStream while respecting backpressure. pipeThrough() is a simple wrapper around pipeTo() that provides elegant syntax for chaining multiple streams.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream

Samples: https://streams.spec.whatwg.org/#rs-intro

View on chromestatus.com