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]: (#2162) ServiceResponse::error_response
now uses body type ofBody
. #2201ServiceResponse::checked_expr
now returns aResult
. #2201- Update
language-tags
to0.3
. ServiceResponse::take_body
. #2201ServiceResponse::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