Re: [whatwg/fetch] Fetch body streams are not full duplex (#1254)

> so if you could elaborate on what prohibits it that would help

`fetch` does not complete until the entire `request.body` ReadableStream has been read and uploaded. This is fundamentally incompatible with duplex streaming, as you can not get a handle to the `response.body` until you close `request.body`.

These tests demonstrate that issue: https://github.com/web-platform-tests/wpt/blob/master/fetch/api/basic/request-upload.any.js. It is expected that the promise returned from `fetch` rejects if a chunk that is pulled off the `request.body` is not a `Uint8Array`.

-- 
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/1254#issuecomment-862353899

Received on Wednesday, 16 June 2021 12:53:36 UTC