actix-web v4.0.0-beta.19 Release Notes

Release Date: 2022-01-04 // over 2 years ago
  • โž• Added

    • impl Hash for http::header::Encoding. [#2501]
    • AcceptEncoding::negotiate(). [#2501]

    ๐Ÿ”„ Changed

    • AcceptEncoding::preference now returns Option<Preference<Encoding>>. [#2501]
    • Rename methods BodyEncoding::{encoding => encode_with, get_encoding => preferred_encoding}. [#2501]
    • http::header::Encoding now only represents Content-Encoding types. [#2501]

    ๐Ÿ›  Fixed

    • Auto-negotiation of content encoding is more fault-tolerant when using the Compress middleware. [#2501]

    โœ‚ Removed

    • Compress::new; restricting compression algorithm is done through feature flags. [#2501]
    • ๐Ÿšฆ BodyEncoding trait; signalling content encoding is now only done via the Content-Encoding header. [#2565]

    ๐ŸŒ [#2501]: https://github.com/actix/actix-web/pull/2501 ๐ŸŒ [#2565]: https://github.com/actix/actix-web/pull/2565