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

denis-migdal left a comment (whatwg/fetch#1791)

> This would require `init.method`, as the default method of `GET` doesn't really make a lot of sense here since it's about specifying the `Content-Type` of the request body.

Maybe it could be `POST` by default when using such static method (which would be what ones would expect) ?

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

Message ID: <whatwg/fetch/issues/1791/2669638900@github.com>

Received on Wednesday, 19 February 2025 20:02:14 UTC