- From: Mattias Buelens <notifications@github.com>
- Date: Fri, 12 Feb 2021 02:20:42 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 12 February 2021 10:20:54 UTC
How will `Request.clone()` and `Response.clone()` work? Currently, to [clone a body](https://fetch.spec.whatwg.org/#concept-body-clone), we [tee](https://streams.spec.whatwg.org/#readablestream-tee) the body's stream. But teeing always returns two *regular* streams, i.e. non-byte streams. It looks like we first need to define how to tee a readable byte stream into two new readable byte streams. This might also affect other parts of the specification. For example, in [this suggestion on #1144](https://github.com/whatwg/fetch/pull/1144#discussion_r573692785), we'd also want to clone a `Request`. -- 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/267#issuecomment-778108341
Received on Friday, 12 February 2021 10:20:54 UTC