Re: [fetch] Automatically set request's "Content-Type" to "application/json" for POJOs (#47)

One solution could be a `type` parameter.  If set to `"json"`, it will wrap your body in `JSON.stringify` and set the appropriate `Content-Type` header.  If set to `"form"`, it will encode your body as form data and set the appropriate header.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/47#issuecomment-99944493

Received on Thursday, 7 May 2015 17:25:47 UTC