Re: [w3ctag/design-reviews] fetch() upload streaming (#434)

No explainer for this.

Here is brief description why we want to implement this:
- Web author will be able to upload streaming data - possibly generated by devices, media, and so on.
Some web clients want to talk to a streaming end-point directly without any intermediary translation. 
Traditionally, uploading streaming data was implemented on WebSocket but it has made client/server code messy. Fetch upload streaming makes that simpler.

Code sample:
```javascript
const stream = new ReadableStream({start: controller => {
    controller.enqueue("f");
    controller.enqueue("bar");
    controller.close();
}});

let response = await fetch("http://example.com/", {method:"POST", body: stream});
let text = await response.text();
console.log(`Server responded "${text}"`);
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/434#issuecomment-550103228

Received on Wednesday, 6 November 2019 01:44:44 UTC