Closed yutakahirano closed 7 years ago
cc: @annevk
I'm okay either way. I guess someone should measure the performance of doing piping if we are fine gating on that?
Is this solved currently? I lost track. If it is not, it probably can be solved similarly to https://github.com/slightlyoff/ServiceWorker/pull/934 ?
It's not yet solved, and it should be solved as same as https://github.com/slightlyoff/ServiceWorker/pull/934.
What is the status of this issue? I missed it while merging in stream-based requests.
At https://github.com/whatwg/fetch/issues/61, we agreed that
req.bodyUsed
should be false ifreq
had null body, andreq.bodyUsed
should be true ifreq
had a non-null body.Anne proposed to introduce
obsolete flag
in order to makereq.body
null andreq.bodyUsed
true after passing the body, but it looks like anotherpassed flag
we replaced with ReadableStream.IsDisturbed. @jakearchibald's piping idea sounds cleaner to me and ideally it should work, but I'm not sure about its performance.Thoughts?
cc: @domenic @wanderview @tyoshino