[Bug 23726] New: Integration between XMLHttpRequest and Streams API

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23726

            Bug ID: 23726
           Summary: Integration between XMLHttpRequest and Streams API
           Product: WebAppsWG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Streams API
          Assignee: tyoshino@google.com
          Reporter: tyoshino@google.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org

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();
source.pipe(streamForUpload);

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 5 November 2013 17:17:06 UTC