RFC 10008: The new HTTP Query Method
- Infrastructure
- APIs
- Web
- Standards
- Developer Tools
RFC 10008 adds QUERY, a new HTTP method for requests that are safe and idempotent like GET but can carry a request body. The point is to support read-only operations that need more input than fits comfortably in a URL, without pretending they are POSTs. Typical examples are complex searches, GraphQL reads, and other large filter payloads. The RFC also keeps QUERY cacheable in principle and allows a server to answer with a `Location` for an equivalent GET-able result, so a large body-based query can be turned into a stable URL after the first request.
If you run APIs, treat QUERY as a semantic cleanup for existing `POST /search` style endpoints, not as a replacement for normal GETs. Watch browser, proxy, CDN, and framework support before betting product behavior on it, because middlebox support and caching behavior will decide whether this stays neat on paper or useful in production.
- rfc-editor.org
- Discuss on HN