- From: Yutaka Hirano <notifications@github.com>
- Date: Tue, 29 Nov 2016 02:22:38 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Tuesday, 29 November 2016 10:23:12 UTC
> However, I don't understand why https://fetch.spec.whatwg.org/#concept-http-network-or-cache-fetch should continue to clone. The whole reason we have additional checks is that we can be more conservative there. As concept body has the body data as a ReadableStream, we need to clone it to replay uploading regardless of the source data type (String, ArrayBuffer, ReadableStream, ...). There are some options I could think of to handle this issue: 1. Stop holding the body data as a ReadableStream. 2. Define a new concept, say "replayable stream", to handle replaying 3. Keep teeing, but adding a flag to forbid user-visible teeing to allow implementers to omit teeing. I chose the last option as it looked easiest. -- 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/pull/425#issuecomment-263532248
Received on Tuesday, 29 November 2016 10:23:12 UTC