update changelog

This commit is contained in:
Rob Ede 2023-01-02 00:58:48 +00:00
parent 1dfcb5ee3f
commit 47659ba30f
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 8 additions and 5 deletions

View File

@ -4,14 +4,14 @@
### Added ### Added
- Implement `MessageBody` for `&mut B` where `B: MessageBody + Unpin`. [#2868] - Implement `MessageBody` for `&mut B` where `B: MessageBody + Unpin`. [#2868]
- Implement `MessageBody` for `Pin<B>` where `B::Target: MessageBody`. [#2868] - Implement `MessageBody` for `Pin<B>` where `B::Target: MessageBody`. [#2868]
- Automatic h2c detection via new service finalizer `HttpService::tcp_auto_h2c()`. [#????] - Automatic h2c detection via new service finalizer `HttpService::tcp_auto_h2c()`. [#2957]
### Performance ### Performance
- Improve overall performance of operations on `Extensions`. [#2890] - Improve overall performance of operations on `Extensions`. [#2890]
[#2868]: https://github.com/actix/actix-web/pull/2868 [#2868]: https://github.com/actix/actix-web/pull/2868
[#2890]: https://github.com/actix/actix-web/pull/2890 [#2890]: https://github.com/actix/actix-web/pull/2890
[#????]: https://github.com/actix/actix-web/pull/???? [#2957]: https://github.com/actix/actix-web/pull/2957
## 3.2.2 - 2022-09-11 ## 3.2.2 - 2022-09-11

View File

@ -39,8 +39,12 @@ use crate::{
/// ///
/// # Examples /// # Examples
/// ``` /// ```
/// use actix_http::HttpService; /// # use std::convert::Infallible;
/// use actix_http::{HttpService, Request, Response, StatusCode};
/// ///
/// // this service would constructed in an actix_server::Server
///
/// # actix_rt::System::new().block_on(async {
/// HttpService::build() /// HttpService::build()
/// // the builder finalizing method, other finalizers would not return an `HttpService` /// // the builder finalizing method, other finalizers would not return an `HttpService`
/// .finish(|_req: Request| async move { /// .finish(|_req: Request| async move {
@ -51,8 +55,7 @@ use crate::{
/// // the service finalizing method method /// // the service finalizing method method
/// // you can use `.tcp_auto_h2c()`, `.rustls()`, or `.openssl()` instead of `.tcp()` /// // you can use `.tcp_auto_h2c()`, `.rustls()`, or `.openssl()` instead of `.tcp()`
/// .tcp(); /// .tcp();
/// /// # })
/// // this service would then be used in an actix_server::Server
/// ``` /// ```
pub struct HttpService<T, S, B, X = h1::ExpectHandler, U = h1::UpgradeHandler> { pub struct HttpService<T, S, B, X = h1::ExpectHandler, U = h1::UpgradeHandler> {
srv: S, srv: S,