- From: Noam Rosenthal <notifications@github.com>
- Date: Sat, 07 Dec 2024 12:56:10 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 7 December 2024 20:56:14 UTC
The stream that we read in `fully read` is not the same one passed to `handover`. - It calls "Read all bytes" (https://fetch.spec.whatwg.org/#body-fully-read .5), which converts the stream to bytes - Then these bytes go to https://fetch.spec.whatwg.org/#body-fully-read .22/3/2: Set response’s [body](https://fetch.spec.whatwg.org/#concept-response-body) to bytes [as a body](https://fetch.spec.whatwg.org/#byte-sequence-as-a-body). - "As a body": extracts bytes, and Set response’s [body](https://fetch.spec.whatwg.org/#concept-response-body) to bytes [as a body](https://fetch.spec.whatwg.org/#byte-sequence-as-a-body). See [extract](https://fetch.spec.whatwg.org/#concept-bodyinit-extract) 4.: set stream to a [new](https://webidl.spec.whatwg.org/#new) [ReadableStream](https://streams.spec.whatwg.org/#readablestream) object, and [set up](https://streams.spec.whatwg.org/#readablestream-set-up-with-byte-reading-support) stream with byte reading support. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/1754#issuecomment-2525307912 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/issues/1754/2525307912@github.com>
Received on Saturday, 7 December 2024 20:56:14 UTC