Re: [whatwg/fetch] Proposal: `Response.json` helper (Issue #1389)

It would make sense to include all these others. 

For `Response.arrayBuffer` we would use the default header `Content-Type: application/octet-stream`.

For `Response.blob`, grab from [`blob.type`](https://developer.mozilla.org/en-US/docs/Web/API/Blob/type)

For `Response.text` we could use `text/plain` by default, while still allowing `Content-Type: text/html` to be passed through `init`

And for `Response.formData`, `Content-Type: multipart/form-data`

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1389#issuecomment-1024880489
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1389/1024880489@github.com>

Received on Saturday, 29 January 2022 10:02:06 UTC