Re: [ServiceWorker] Backpressure on fetch integrated with Streams (#452)

In terms of an empty body, I think it should be represented as an empty String / ArrayBuffer (XHR does [so](https://xhr.spec.whatwg.org/#arraybuffer-response)). In terms of a fully consumed body, I don't see a strong reason to treat it differently from an empty body.

I don't have a specific example, but developers would want to distinguish an empty response from a communication error.

By the way, `readInto()` in ReadableByteStream may return 0. That means `read()` may return an empty ArrayBuffer and it should be ignored.



---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/452#issuecomment-71953991

Received on Thursday, 29 January 2015 01:42:56 UTC