Added
- Add
HttpServer::{bind, listen}_auto_h2c()
methods behind newhttp2
crate feature. - Add
HttpServer::{bind, listen}_rustls_021()
methods for Rustls v0.21 support behind newrustls-0_21
crate feature. - Add
Resource::{get, post, etc...}
methods for more concisely adding routes that don’t need additional guards. - Add
web::Payload::to_bytes[_limited]()
helper methods. - Add missing constructors on
HttpResponse
for several status codes. - Add
http::header::ContentLength
typed header. - Implement
Default
forweb::Data
. - Implement
serde::Deserialize
forweb::Data
. - Add
rustls-0_20
crate feature, which the existingrustls
feature now aliases.
Changed
- Handler functions can now receive up to 16 extractor parameters.
- The
Compress
middleware no longer compresses image or video content. - Hide sensitive header values in
HttpRequest
’sDebug
output. - Minimum supported Rust version (MSRV) is now 1.68 due to transitive
time
dependency.
I like that they now have rustls 0.21 support! Not that I know anything wrong with rustls 0.20, but I was always annoyed that cargo outdated pointed out that my rustls was outdated, and I wan’t allowed to fix it :)
valid reason IMO