- From: Anne van Kesteren <notifications@github.com>
- Date: Sat, 27 Feb 2021 00:21:09 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 27 February 2021 08:21:21 UTC
My plan does not work for `Blob` and `FormData`: https://github.com/whatwg/html/issues/6424. The other types should probably still be eagerly converted to a byte sequence... So maybe we should have convert and that returns a tuple of * a byte sequence or a read operation of sorts * a length but it's still rather inelegant to do extract and length (which would both use convert) determination separately. So maybe body should store a length after all. (Though we should also be clear that it's different between requests and responses as for responses it can lie, especially with service workers and maybe also with H/2 and H3/, which don't really have that concept although if you specify `Content-Length` maybe it's still required to match?) -- 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/604#issuecomment-787035176
Received on Saturday, 27 February 2021 08:21:21 UTC