actix-web/actix-web-codegen/tests
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
..
trybuild chore: upgrade MSRV to 1.82 (#3844) 2025-11-26 20:26:35 +00:00
routes.rs feat: add support for the HTTP QUERY method (RFC 10008) 2026-07-07 19:05:40 -03:00
scopes.rs chore: move deny lints to manifests 2024-07-07 03:54:00 +01:00
trybuild.rs refactor: switch size parsing to bytesize crate 2025-03-21 06:06:50 +00:00