update changelog

This commit is contained in:
Rob Ede 2021-12-24 02:19:40 +00:00
parent 2c30eaec9c
commit 02ae28581a
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 14 additions and 15 deletions

View File

@ -3,17 +3,17 @@
## Unreleased - 2021-xx-xx
### Changes
- `HeaderMap::get_all` now returns a `std::slice::Iter`. [#2527]
- `Payload` inner fields are now named. [#????]
- `impl Stream` for `Payload` no longer requires the `Stream` variant be `Unpin`. [#????]
- `impl Future` for `h1::SendResponse` no longer requires the body type be `Unpin`. [#????]
- `impl Stream` for `encoding::Decoder` no longer requires the stream type be `Unpin`. [#????]
- Rename `PayloadStream` to `BoxedPayloadStream`. [#????]
- `Payload` inner fields are now named. [#2545]
- `impl Stream` for `Payload` no longer requires the `Stream` variant be `Unpin`. [#2545]
- `impl Future` for `h1::SendResponse` no longer requires the body type be `Unpin`. [#2545]
- `impl Stream` for `encoding::Decoder` no longer requires the stream type be `Unpin`. [#2545]
- Rename `PayloadStream` to `BoxedPayloadStream`. [#2545]
### Removed
- `h1::Payload::readany`. [#????]
- `h1::Payload::readany`. [#2545]
[#2527]: https://github.com/actix/actix-web/pull/2527
[#????]: https://github.com/actix/actix-web/pull/????
[#2545]: https://github.com/actix/actix-web/pull/2545
## 3.0.0-beta.16 - 2021-12-17

View File

@ -6,7 +6,6 @@ use std::{
use bytes::Bytes;
use futures_core::Stream;
use h2::RecvStream;
use crate::error::PayloadError;
@ -39,8 +38,8 @@ impl<S> From<crate::h2::Payload> for Payload<S> {
}
}
impl<S> From<RecvStream> for Payload<S> {
fn from(stream: RecvStream) -> Self {
impl<S> From<h2::RecvStream> for Payload<S> {
fn from(stream: h2::RecvStream) -> Self {
Payload::H2 {
payload: crate::h2::Payload::new(stream),
}
@ -83,6 +82,5 @@ mod tests {
use super::*;
assert_impl_all!(RecvStream: Unpin);
assert_impl_all!(Payload: Unpin);
}

View File

@ -13,16 +13,17 @@ use actix_http::{
Payload, RequestHeadType, ResponseHead, StatusCode,
};
use actix_utils::future::poll_fn;
use bytes::buf::BufMut;
use bytes::{Bytes, BytesMut};
use bytes::{buf::BufMut, Bytes, BytesMut};
use futures_core::{ready, Stream};
use futures_util::SinkExt as _;
use pin_project_lite::pin_project;
use crate::BoxError;
use super::connection::{ConnectionIo, H1Connection};
use super::error::{ConnectError, SendRequestError};
use super::{
connection::{ConnectionIo, H1Connection},
error::{ConnectError, SendRequestError},
};
pub(crate) async fn send_request<Io, B>(
io: H1Connection<Io>,