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.
Part of a broader RFC 10008 adoption effort: https://github.com/jeswr/http-query-adoption
RFC 10008 standardizes QUERY — a safe, idempotent, cacheable method carrying a request body — and registers it in the IANA HTTP Method Registry.
The
httpcrate exposes associated constants for the standard methods (Method::GET,Method::POST, …) but not QUERY, so users have to writeMethod::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, sois_safe()andis_idempotent()should returntruefor it.This benefits the wider ecosystem that re-exports these constants (hyper, reqwest, axum, tonic). Happy to open a PR.
Part of a broader RFC 10008 adoption effort: https://github.com/jeswr/http-query-adoption