Re: [whatwg/fetch] why not add an option of json (#430)

> use fetch api to send a http request , the response is always a json data , right?

Nah data can be in one of many formats. 

* https://jakearchibald.com/2016/sounds-fun/#playing-a-sound - fetching as an `arrayBuffer` for processing sound
* https://jakearchibald.com/2016/fun-hacks-faster-content/#newline-delimited-json fetching as a ND-JSON stream

-- 
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/fetch/issues/430#issuecomment-265742214

Received on Thursday, 8 December 2016 13:43:14 UTC