github actix/actix-web http-v3.0.0-beta.7
actix-http: v3.0.0-beta.7

latest releases: awc-v3.5.1, web-v4.9.0, http-v3.9.0...
pre-release3 years ago

Added

  • Alias body::Body as body::AnyBody. #2215
  • BoxAnyBody: a boxed message body with boxed errors. #2183
  • Re-export http crate's Error type as error::HttpError. #2171
  • Re-export StatusCode, Method, Version and Uri at the crate root. #2171
  • Re-export ContentEncoding and ConnectionType at the crate root. #2171
  • Response::into_body that consumes response and returns body type. #2201
  • impl Default for Response. #2201
  • Add zstd support for ContentEncoding. #2244

Changed

  • The MessageBody trait now has an associated Error type. #2183
  • 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
  • Places in Response where ResponseBody<B> was received or returned now simply use B. #2201
  • header mod is now public. #2171
  • uri mod is now public. #2171
  • Update language-tags to 0.3.
  • Reduce the level from error to debug for the log line that is emitted when a 500 Internal Server Error is built using HttpResponse::from_error. #2201
  • ResponseBuilder::message_body now returns a Result. #2201
  • Remove Unpin bound on ResponseBuilder::streaming. #2253
  • HttpServer::{listen_rustls(), bind_rustls()} now honor the ALPN protocols in the configuation parameter. [#2226]

Removed

  • Stop re-exporting http crate's HeaderMap types in addition to ours. #2171
  • Down-casting for MessageBody types. #2183
  • error::Result alias. #2201
  • Error field from Response and Response::error. #2205
  • impl Future for Response. #2201
  • Response::take_body and old Response::into_body method that casted body type. #2201
  • InternalError and all the error types it constructed. #2215
  • Conversion (impl Into) of Response<Body> and ResponseBuilder to Error. #2215

Don't miss a new actix-web release

NewReleases is sending notifications on new releases.