← Back to release summary

Fetch API: Response construction with ReadableStream

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

Summary

Developers can now construct their own ReadableStream instances, and use one as a body for constructing a Response object. It enables streaming composed body data from a ServiceWorker to a page controlled by it.

Standards & signals

Docs: https://streams.spec.whatwg.org/#rs https://developers.google.com/web/updates/2016/06/sw-readablestreams

Samples: https://jakearchibald.com/2016/streams-ftw/

View on chromestatus.com