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

> I think the right way to provide a json()-like convenience routine for streams would be to define a JsonStreamReader() or ConsumeAsJson() function. These would use read() to drain the stream and convert to json. This would have the added benefit of working with any stream; not just Request/Response.

My vision of `request.json()` is that it works exactly in this way.

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

Received on Sunday, 30 November 2014 01:08:32 UTC