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> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| CHANGES.md | ||
| Cargo.toml | ||
| LICENSE-APACHE | ||
| LICENSE-MIT | ||
| README.md | ||
README.md
actix-web-codegen
Routing and runtime macros for Actix Web.
Compile Testing
Uses the trybuild crate. All compile fail tests should include a stderr file generated by trybuild. See the workflow section of the trybuild docs for info on how to do this.