actix-web/actix-web-codegen
Bruno Oliveira 38ef6b73f5 feat: add support for the HTTP QUERY method (RFC 10008)
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>
2026-07-07 19:05:40 -03:00
..
src feat: add support for the HTTP QUERY method (RFC 10008) 2026-07-07 19:05:40 -03:00
tests feat: add support for the HTTP QUERY method (RFC 10008) 2026-07-07 19:05:40 -03:00
CHANGES.md feat: add support for the HTTP QUERY method (RFC 10008) 2026-07-07 19:05:40 -03:00
Cargo.toml chore: narrow tokio dep to account for RUSTSEC-2025-0023 2025-05-10 06:09:51 +01:00
LICENSE-APACHE prepare actix-web-codegen release 2019-06-01 17:21:22 +06:00
LICENSE-MIT prepare actix-web-codegen release 2019-06-01 17:21:22 +06:00
README.md build(deps): bump time from 0.3.45 to 0.3.46 (#3893) 2026-01-28 08:10:27 +00:00

README.md

actix-web-codegen

Routing and runtime macros for Actix Web.

crates.io Documentation Version License
dependency status Download Chat on Discord

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.