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 ofBody
. [#2201]ServiceResponse::checked_expr
now returns aResult
. [#2201]- โก๏ธ Update
language-tags
to0.3
. ServiceResponse::take_body
. [#2201]ServiceResponse::map_body
closure receives and returnsB
instead ofResponseBody<B>
types. [#2201]- ๐ All error trait bounds in server service builders have changed from
Into<Error>
toInto<Response<AnyBody>>
. [#2253] - All error trait bounds in message body and stream impls changed from
Into<Error>
toInto<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 oldHttpResponse::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