web-v4.2.0
actix/actix-webweb-v4.2.0Sep 11, 2022by robjtede
AI Summary
This release introduces a macro for defining multiple paths on a single handler and adds getter methods for `ServiceRequest`. It also adds configuration options for TLS handshake timeouts.
Key Highlights
- Added `#[routes]` macro to support multiple paths for one handler
- Added `ServiceRequest::{parts, request}()` getter methods
- Added configuration options for TLS handshake timeout
New Features
- #[routes] macro
- ServiceRequest::parts() and ServiceRequest::request()
- TLS handshake timeout configuration options
Full Release Notes
### Added
- Add `#[routes]` macro to support multiple paths for one handler. [#2718]
- Add `ServiceRequest::{parts, request}()` getter methods. [#2786]
- Add configuration options for TLS handshake timeout via `HttpServer::{rustls, openssl}_with_config` methods. [#2752]
### Changed
- Minimum supported Rust version (MSRV) is now 1.59 due to transitive `time` dependency.
[#2718]: https://github.com/actix/actix-web/pull/2718
[#2752]: https://github.com/actix/actix-web/pull/2752
[#2786]: https://github.com/actix/actix-web/pull/2786