- From: Jimmy Karl Roland Wärting <notifications@github.com>
- Date: Mon, 29 Aug 2016 10:51:02 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Monday, 29 August 2016 17:51:30 UTC
Now we can get a readable stream from the response, which is cool! But i think it needs a complementary WriteableStream for the request as well. Imagine being able to post more then what can fit into the memory or were you simply just don't have everything you need to post. ```javascript let ws = new WritableStream let encoder = new TextEncoder let writer = ws.getWriter() fetch('api/upload', { method: 'post', body: ws }) let uint8array = encoder.encode('chunk') writeStream.write(uint8array) writeStream.close() ``` But i guess the WritableStream has to be finalized first ^^ -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/378
Received on Monday, 29 August 2016 17:51:30 UTC