actix-web/actix-web-codegen
Varun Chawla 218fe0a663
codegen: auto-register HEAD guard for #[get] routes
Per RFC 7231 Section 4.3.2, a server that supports GET must also
support HEAD. The #[get] macro now implicitly registers a HEAD
guard so that HEAD requests are handled without requiring users
to write #[route("/path", method="GET", method="HEAD")].

Fixes #2702
2026-02-22 20:16:17 -08:00
..
src codegen: auto-register HEAD guard for #[get] routes 2026-02-22 20:16:17 -08:00
tests codegen: auto-register HEAD guard for #[get] routes 2026-02-22 20:16:17 -08:00
CHANGES.md build(deps): bump time from 0.3.45 to 0.3.46 (#3893) 2026-01-28 08:10:27 +00: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.