upvote
No. There are use cases for GET with body. Curl allows it. Node allows it. Bun doesn't.
reply
There may be use-cases (and the RFC allows ignoring the SHOULD clause with enough reasoning), but GET does not have a request body as per specification, and a LOT of things drop it because of that (most notably - nginx! Also applies to HAProxy and Apache HTTP server afaik, but also a bunch of load balancers)
reply
no.
reply
Wrong.

Hint: Elasticsearch, GraphQL, Axios, etc..

reply
GraphQL uses POST for queries.
reply
Many GraphQL clients/libraries use GET with body to workaround hitting URL query limitations like length, etc.

Spec is not the same as compatibility.

reply
How would you hit URL query limitations when putting your GraphQL query in the POST request's body?
reply
[dead]
reply