News for hackers. Stuff that matters.
Re:Defining a new HTTP method: HTTP Search (2021) by dragonwriter on Saturday May 27, 2023 @03:41PM (#36097563)
Verbs specify safety/idempotency guarantees for API-blind middleware, as well as whether (if either applies) a body needs taken into account; POST is not idempotent, SEARCH/QUERY is safe, and therefore also idempotent, but differs from GET in that that guarantee is body-specific.
Re:Defining a new HTTP method: HTTP Search (2021) by adql on Saturday May 27, 2023 @07:07PM (#36099332)
Might as well just say "ok now GET can have body" instead of all that noise
Re:Defining a new HTTP method: HTTP Search (2021) by dragonwriter on Saturday May 27, 2023 @08:50PM (#36100021)
Won’t retroactively change things that support GET to support GET-with-body. A new verb makes it much more likely that anything that supports the verb supports the desired semantics.

(Of course, you could instead bump the HTTP version for support of GET-with-body, but given how HTTP/2 and HTTP/3 are defined in terms of HTTP/1.1, you’d need three new versions of HTTP for a change to core verb semantics. A new verb, again, is far simpler.)