- From: Adam Rice <notifications@github.com>
- Date: Thu, 07 Nov 2019 20:02:22 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 8 November 2019 04:02:30 UTC
> Isn't it visible if someone does something like > > ```js > response.body.pipeTo(...) > console.log(response.bodyUsed); > ``` > > ? My original thought was that this depends on the implementation of pipeTo (ie. whether or not it does the first read synchronously). But I think you can make the difference detectable in any implementation by doing ```javascript response.body.pipeTo(new WritableStream({}, { highWaterMark: 0 }); console.log(response.bodyUsed); ``` So actually implementations will have to explicitly apply this change. Or maybe this standard is the wrong place to make this change, and it should go in Fetch instead. -- 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/streams/pull/1022#issuecomment-551375111
Received on Friday, 8 November 2019 04:02:30 UTC