RFC 10008, published June 15, 2026, introduces the HTTP QUERY method — a new HTTP verb that accepts a request body while remaining safe, idempotent, and cacheable, unlike POST. This fills a long-standing gap for APIs (especially JSON-RPC) that need to send structured query payloads but couldn't benefit from HTTP caching because POST signals state mutation. The QUERY method allows reverse proxies and CDNs to cache responses using both the request body and its metadata as the cache key, enabling HTTP-native caching for read-heavy RPC-style APIs. Code examples are provided for Go (using net/http) and Rust (using reqwest), both of which support custom HTTP method strings without additional dependencies.
24.8K Impressions