This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23726 - Integration between XMLHttpRequest and Streams API
Summary: Integration between XMLHttpRequest and Streams API
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Streams API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Takeshi Yoshino
QA Contact: public-webapps-bugzilla
Depends on:
Reported: 2013-11-05 17:17 UTC by Takeshi Yoshino
Modified: 2015-04-28 04:51 UTC (History)
2 users (show)

See Also:


Description Takeshi Yoshino 2013-11-05 17:17:01 UTC
Current ED tries to support upload-with-Stream usage by making send() to accept a Stream as its argument. We can also choose to let XHR provide a WritableByteStream.

For example, if we can make send() to return a WritableByteStream, it'll be

streamForUpload = xhr.send();

Current extension approach is easy. But maybe now we should revisit this and discuss which is better not only about XHR but for each API and if possible figure out good practice in general.
Comment 1 Takeshi Yoshino 2013-11-05 17:35:56 UTC
The SourceBuffer.appendStream method of Media Source Extensions takes a Stream as an argument.

void appendStream (Stream stream, [EnforceRange] optional unsigned long long maxSize);


Media Capture API


Discussion between Takeshi and Aymeric with some examples.
Comment 2 Takeshi Yoshino 2015-04-28 04:51:44 UTC
Integration of Streams and XMLHttpRequest has been discontinued as the WG roughly agreed on feature freeze of XMLHttpRequest.

Integration with the Fetch API is happening at