diff --git a/actix-http/CHANGES.md b/actix-http/CHANGES.md index 3899ab643..84d04eff6 100644 --- a/actix-http/CHANGES.md +++ b/actix-http/CHANGES.md @@ -4,14 +4,14 @@ ### Added - Implement `MessageBody` for `&mut B` where `B: MessageBody + Unpin`. [#2868] - Implement `MessageBody` for `Pin` 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 - Improve overall performance of operations on `Extensions`. [#2890] [#2868]: https://github.com/actix/actix-web/pull/2868 [#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 diff --git a/actix-http/src/service.rs b/actix-http/src/service.rs index 315c3c6c9..62128f3ec 100644 --- a/actix-http/src/service.rs +++ b/actix-http/src/service.rs @@ -39,8 +39,12 @@ use crate::{ /// /// # 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() /// // the builder finalizing method, other finalizers would not return an `HttpService` /// .finish(|_req: Request| async move { @@ -51,8 +55,7 @@ use crate::{ /// // the service finalizing method method /// // you can use `.tcp_auto_h2c()`, `.rustls()`, or `.openssl()` instead of `.tcp()` /// .tcp(); -/// -/// // this service would then be used in an actix_server::Server +/// # }) /// ``` pub struct HttpService { srv: S,