mirror of https://github.com/fafhrd91/actix-web
QUERY (RFC 10008, June 2026; registered in the IANA HTTP Method Registry) is safe and idempotent like GET but carries a request body like POST. It is wired through exactly like PATCH: - actix-web: `guard::Query()`, `web::query()`, `Resource::query()`, and `TestRequest::query()` - actix-web-codegen: `#[query]` routing macro (plus re-export from actix-web) `http` 0.2 has no `Method::QUERY` constant, so the method is built with `Method::from_bytes(b"QUERY").unwrap()`, with a TODO to switch to the constant once the `http` dependency is bumped (#3384). No dependency changes. `actix-http` needs no change (it uses `http::Method` directly). Tests mirror the existing PATCH coverage and add a body-carrying QUERY test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| trybuild | ||
| routes.rs | ||
| scopes.rs | ||
| trybuild.rs | ||