web-v4.11.0

actix/actix-webweb-v4.11.0May 10, 2025by robjtede

AI Summary

Adds logging controls, server shutdown handling, and improves middleware capabilities.

Key Highlights

  • Add `Logger::log_level()` and `HttpServer::shutdown_signal()` methods
  • Allow SVG images to be compressed by the `Compress` middleware
  • Ignore `Host` header in `Host` guard when connection protocol is HTTP/2
  • Re-export `mime` dependency

New Features

  • Logger::log_level() method
  • HttpServer::shutdown_signal() method
  • Compress middleware for SVG images
  • Re-export mime dependency

Full Release Notes

- Add `Logger::log_level()` method.
- Improve handling of non-UTF-8 header values in `Logger` middleware.
- Add `HttpServer::shutdown_signal()` method.
- Mark `HttpServer` as `#[must_use]`.
- Allow SVG images to be compressed by the `Compress` middleware.
- Ignore `Host` header in `Host` guard when connection protocol is HTTP/2.
- Re-export `mime` dependency.
- Update `brotli` dependency to `8`.