mirror of https://github.com/fafhrd91/actix-web
update changelog
This commit is contained in:
parent
2c30eaec9c
commit
02ae28581a
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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>,
|
||||
|
|
Loading…
Reference in New Issue