Re: [fetch-tests] Adding tests to ensure fetch Response body chunks are cloned (#3595)

Response clone is using ReadableStream teeing with shouldClone=true.

Teeing could probably be optimized since it creates two copies of the original streamed object, one for each branch. But this looks bad to have one teed branch with cloned data and the other with original data.

If ReadableStream spec could support a clone operation that fetch would use instead of teeing...



View on GitHub: https://github.com/w3c/web-platform-tests/pull/3595#issuecomment-248247079

Received on Tuesday, 20 September 2016 09:12:11 UTC