Remix.run Logo
▲ zja 5 hours ago

They just implement the fetch api from the web, does the fetch api allow get’s to have a body?

▲elendilm 5 hours ago | parent [-]

Node allows it. Curl allows. Not having it is a breaking change and undesirable for node compatibility.

▲dullcrisp 4 hours ago | parent | next [-]

If you need bug-for-bug node compatibility you should be using node.

▲elendilm an hour ago | parent [-]

Your "bug-for-bug" compatibility ensures Axios, Elasticsearch, many GraphQL implementations, etc. works. Hence I will use node as mentioned in my original comment.

You should use bun :)

▲what 3 hours ago | parent | prev [-]

A body is technically allowed on any http request but it doesn’t mean anything on a get, a server is free to ignore it, anything in the middle is free to strip it, etc.