You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Method::QUERY constant for the HTTP QUERY method (RFC 10008) #847
RFC 10008 standardizes QUERY — a safe, idempotent, cacheable method carrying a request body — and registers it in the IANA HTTP Method Registry.
The http crate exposes associated constants for the standard methods (Method::GET, Method::POST, …) but not QUERY, so users have to write Method::from_bytes(b"QUERY").unwrap().
Ask: add pub const QUERY: Method, matching the existing constants and classified consistently with the crate's conventions — QUERY is safe and idempotent, so is_safe() and is_idempotent() should return true for it.
This benefits the wider ecosystem that re-exports these constants (hyper, reqwest, axum, tonic). Happy to open a PR.
Activity
seanmonstar commentedon Jul 1, 2026
This was done in #798. It will be released soon.
QUERYHTTP method #743