mirror of https://github.com/fafhrd91/actix-web
update changelog
This commit is contained in:
parent
7c8fc2facf
commit
0cc75e3ab8
|
@ -2,16 +2,16 @@
|
||||||
|
|
||||||
## Unreleased - 2021-xx-xx
|
## Unreleased - 2021-xx-xx
|
||||||
### Added
|
### Added
|
||||||
* `AnyBody::empty` for quickly creating an empty body. [???]
|
* `AnyBody::empty` for quickly creating an empty body. [#2446]
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* Rename `AnyBody::{Message => Stream}`. [#????]
|
* Rename `AnyBody::{Message => Stream}`. [#2446]
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
* `AnyBody::Empty`; an empty body can now only be represented as a zero-length `Bytes` 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. [#????]
|
* `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
|
## 3.0.0-beta.12 - 2021-11-15
|
||||||
|
|
|
@ -33,7 +33,7 @@ pub use self::sized_stream::SizedStream;
|
||||||
/// use bytes::Bytes;
|
/// use bytes::Bytes;
|
||||||
///
|
///
|
||||||
/// # async fn test_to_bytes() {
|
/// # async fn test_to_bytes() {
|
||||||
/// let body = Body::Empty;
|
/// let body = Body::None;
|
||||||
/// let bytes = to_bytes(body).await.unwrap();
|
/// let bytes = to_bytes(body).await.unwrap();
|
||||||
/// assert!(bytes.is_empty());
|
/// assert!(bytes.is_empty());
|
||||||
///
|
///
|
||||||
|
|
|
@ -25,7 +25,6 @@ impl BodySize {
|
||||||
/// ```
|
/// ```
|
||||||
/// # use actix_http::body::BodySize;
|
/// # use actix_http::body::BodySize;
|
||||||
/// assert!(BodySize::None.is_eof());
|
/// assert!(BodySize::None.is_eof());
|
||||||
/// assert!(BodySize::Empty.is_eof());
|
|
||||||
/// assert!(BodySize::Sized(0).is_eof());
|
/// assert!(BodySize::Sized(0).is_eof());
|
||||||
///
|
///
|
||||||
/// assert!(!BodySize::Sized(64).is_eof());
|
/// assert!(!BodySize::Sized(64).is_eof());
|
||||||
|
|
Loading…
Reference in New Issue