update changelog

This commit is contained in:
Rob Ede 2021-11-16 01:31:30 +00:00
parent 7c8fc2facf
commit 0cc75e3ab8
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 6 additions and 7 deletions

View File

@ -2,16 +2,16 @@
## Unreleased - 2021-xx-xx
### Added
* `AnyBody::empty` for quickly creating an empty body. [???]
* `AnyBody::empty` for quickly creating an empty body. [#2446]
### Changed
* Rename `AnyBody::{Message => Stream}`. [#????]
* Rename `AnyBody::{Message => Stream}`. [#2446]
### Removed
* `AnyBody::Empty`; an empty body can now only be represented as a zero-length `Bytes` variant. [#????]
* `BodySize::Empty`; an empty body can now only be represented as a `Sized(0)` variant. [#????]
* `AnyBody::Empty`; an empty body can now only be represented as a zero-length `Bytes` variant. [#2446]
* `BodySize::Empty`; an empty body can now only be represented as a `Sized(0)` variant. [#2446]
[#????]: https://github.com/actix/actix-web/pull/????
[#2446]: https://github.com/actix/actix-web/pull/2446
## 3.0.0-beta.12 - 2021-11-15

View File

@ -33,7 +33,7 @@ pub use self::sized_stream::SizedStream;
/// use bytes::Bytes;
///
/// # async fn test_to_bytes() {
/// let body = Body::Empty;
/// let body = Body::None;
/// let bytes = to_bytes(body).await.unwrap();
/// assert!(bytes.is_empty());
///

View File

@ -25,7 +25,6 @@ impl BodySize {
/// ```
/// # use actix_http::body::BodySize;
/// assert!(BodySize::None.is_eof());
/// assert!(BodySize::Empty.is_eof());
/// assert!(BodySize::Sized(0).is_eof());
///
/// assert!(!BodySize::Sized(64).is_eof());