- From: Domenic Denicola <notifications@github.com>
- Date: Sat, 29 Nov 2014 17:08:05 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Sunday, 30 November 2014 01:08:32 UTC
> 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