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

latest releases: web-v4.5.1, actors-v4.3.0, test-v0.1.3...
pre-release2 years ago

Added

  • body::AnyBody::empty for quickly creating an empty body. #2446
  • body::AnyBody::none for quickly creating a "none" body. #2456
  • impl Clone for body::AnyBody<S> where S: Clone. #2448
  • body::AnyBody::into_boxed for quickly converting to a type-erased, boxed body type. #2448

Changed

  • Rename body::AnyBody::{Message => Body}. #2446
  • Rename body::AnyBody::{from_message => new_boxed}. #2448
  • Rename body::AnyBody::{from_slice => copy_from_slice}. #2448
  • Rename body::{BoxAnyBody => BoxBody}. #2448
  • Change representation of AnyBody to include a type parameter in Body variant. Defaults to BoxBody. #2448
  • Encoder::response now returns AnyBody<Encoder<B>>. #2448

Removed

  • body::AnyBody::Empty; an empty body can now only be represented as a zero-length Bytes variant. #2446
  • body::BodySize::Empty; an empty body can now only be represented as a Sized(0) variant. #2446
  • EncoderError::Boxed; it is no longer required. #2446
  • body::ResponseBody; is function is replaced by the new body::AnyBody enum. #2446

Don't miss a new actix-web release

NewReleases is sending notifications on new releases.