Currently, gleam_http defines HTTP methods based on RFC 2616 and RFC 5789. However, in June 2026, the IETF published RFC 10008 which officially standardizes the QUERY method.
The QUERY method is designed for safe, idempotent requests that carry a request payload (body) but do not modify server state. It fills the gap between:
GET — safe and cacheable but doesn't support request bodies (per spec)
POST — supports request bodies but is neither safe, idempotent, nor cacheable
Proposal: Add Query variant to the Method type.
If this gets approved, I'd be happy to submit a PR with the implementation, tests, and documentation! 🚀
Currently,
gleam_httpdefines HTTP methods based on RFC 2616 and RFC 5789. However, in June 2026, the IETF published RFC 10008 which officially standardizes theQUERYmethod.The
QUERYmethod is designed for safe, idempotent requests that carry a request payload (body) but do not modify server state. It fills the gap between:GET— safe and cacheable but doesn't support request bodies (per spec)POST— supports request bodies but is neither safe, idempotent, nor cacheableProposal: Add
Queryvariant to theMethodtype.If this gets approved, I'd be happy to submit a PR with the implementation, tests, and documentation! 🚀