The new HTTP QUERY method explained
- Infrastructure
- APIs
- Web
- Standards
The post walks through the new HTTP QUERY method, a standardized way to send read-only requests with a body. It is aimed at cases like complex searches, filters, and GraphQL-style reads where query strings are too cramped or awkward, but POST has the wrong semantics because it signals an unsafe operation and is poorly cached by default. The practical pitch is simple: QUERY is "GET with a body" made explicit, so intermediaries and tooling can treat it as safe and idempotent instead of guessing.
If your APIs currently use POST for search, filters, or GraphQL reads, QUERY is worth tracking because it gives cleaner semantics and a better path for tooling and caching over time. Do not plan on immediate browser, proxy, CDN, or WAF support, and design an explicit fallback path from QUERY to POST.
- kreya.app
- Discuss on HN