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

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

Added

  • Add timeout for canceling HTTP/2 server side connection handshake. Default to 5 seconds. #2483
  • HTTP/2 handshake timeout can be configured with ServiceConfig::client_timeout. #2483
  • Response::map_into_boxed_body. #2468
  • body::EitherBody enum. #2468
  • body::None struct. #2468
  • Impl MessageBody for bytestring::ByteString. #2468
  • impl Clone for ws::HandshakeError. #2468
  • #[must_use] for ws::Codec to prevent subtle bugs. #1920
  • impl Default for ws::Codec. #1920
  • header::QualityItem::{max, min}. #2486
  • header::Quality::{MAX, MIN}. #2486
  • impl Display for header::Quality. #2486
  • Connection data set through the on_connect_ext callbacks is now accessible only from the new Request::conn_data() method. #2491
  • Request::take_conn_data(). #2491
  • Request::take_req_data(). #2487
  • impl Clone for RequestHead. #2487
  • New methods on MessageBody trait, is_complete_body and take_complete_body, both with default implementations, for optimisations on body types that are done in exactly one poll/chunk. #2497

Changed

  • Rename body::BoxBody::{from_body => new}. #2468
  • Body type for Responses returned from Response::{new, ok, etc...} is now BoxBody. #2468
  • The Error associated type on MessageBody type now requires impl Error (or similar). #2468
  • Error types using in service builders now require Into<Response<BoxBody>>. #2468
  • From implementations on error types now return a Response<BoxBody>. #2468
  • ResponseBuilder::body(B) now returns Response<EitherBody<B>>. #2468
  • ResponseBuilder::finish() now returns Response<EitherBody<()>>. #2468

Removed

  • ResponseBuilder::streaming. #2468
  • impl Future for ResponseBuilder. #2468
  • Remove unnecessary MessageBody bound on types passed to body::AnyBody::new. #2468
  • Move body::AnyBody to awc. Replaced with EitherBody and BoxBody. #2468
  • impl Copy for ws::Codec. #1920
  • header::qitem helper. Replaced with header::QualityItem::max. #2486
  • impl TryFrom<u16> for header::Quality. #2486
  • http module. Most everything it contained is exported at the crate root. #2488

Don't miss a new actix-web release

NewReleases is sending notifications on new releases.