- From: Yoichi Osato <notifications@github.com>
- Date: Tue, 05 Nov 2019 17:44:27 -0800
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 6 November 2019 01:44:44 UTC
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