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

Release Date: 2021-06-17 // almost 3 years ago
  • โž• Added

    • HttpServer::worker_max_blocking_threads for setting block thread pool. [#2200]

    ๐Ÿ”„ Changed

    • ๐Ÿ›ฐ Adjusted default JSON payload limit to 2MB (from 32kb) and included size and limits in the JsonPayloadError::Overflow error variant. [#2162] ๐ŸŒ [#2162]: (https://github.com/actix/actix-web/pull/2162)
    • ServiceResponse::error_response now uses body type of Body. [#2201]
    • ServiceResponse::checked_expr now returns a Result. [#2201]
    • โšก๏ธ Update language-tags to 0.3.
    • ServiceResponse::take_body. [#2201]
    • ServiceResponse::map_body closure receives and returns B instead of ResponseBody<B> types. [#2201]
    • ๐Ÿ— All error trait bounds in server service builders have changed from Into<Error> to Into<Response<AnyBody>>. [#2253]
    • All error trait bounds in message body and stream impls changed from Into<Error> to Into<Box<dyn std::error::Error>>. [#2253]
    • HttpServer::{listen_rustls(), bind_rustls()} now honor the ALPN protocols in the configuation parameter. [#2226]
    • middleware::normalize now will not try to normalize URIs with no valid path [#2246]

    โœ‚ Removed

    • HttpResponse::take_body and old HttpResponse::into_body method that casted body type. [#2201]

    ๐ŸŒ [#2200]: https://github.com/actix/actix-web/pull/2200 ๐ŸŒ [#2201]: https://github.com/actix/actix-web/pull/2201 ๐ŸŒ [#2253]: https://github.com/actix/actix-web/pull/2253 ๐ŸŒ [#2246]: https://github.com/actix/actix-web/pull/2246