Intent to Prototype: textStream() for response/request/blob

22 views
Skip to first unread message

Chromestatus

unread,
11:22 AM (6 hours ago) 11:22 AM
to blin...@chromium.org, nrose...@chromium.org
Contact emails
nrose...@chromium.org

Explainer
https://github.com/whatwg/fetch/pull/1862

Specification
https://github.com/whatwg/fetch/pull/1862

Summary
Add textStream() to interfaces that represent a byte stream (request, response, blob). This is equivalent to piping the byte stream through a TextDecoderStream(), and reduces this small piece of broilerplate for commoncases.

Blink component
Blink>Network>FetchAPI

Web Feature ID
fetch

Motivation
A small ergonomic change to make it easier to stream text from a byte stream such as response (or blob) to a sink that accepts strings. Helps with a footgun of forgetting to pipe through a TextDecoderStream.

Initial public proposal
https://github.com/whatwg/fetch/pull/1862

Goals for experimentation
None

Requires code in //chrome?
False

Tracking bug
https://issues.chromium.org/issues/514448226

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5146752165478400?gate=5138429458382848

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages