diff --git a/src/dev.rs b/src/dev.rs index b8d95efbb..13bc48a29 100644 --- a/src/dev.rs +++ b/src/dev.rs @@ -18,7 +18,9 @@ pub use actix_http::body::{AnyBody, Body, BodySize, MessageBody, ResponseBody, S #[cfg(feature = "__compress")] pub use actix_http::encoding::Decoder as Decompress; -pub use actix_http::{Extensions, Payload, PayloadStream, RequestHead, ResponseHead}; +pub use actix_http::{ + CloneableExtensions, Extensions, Payload, PayloadStream, RequestHead, ResponseHead, +}; pub use actix_router::{Path, ResourceDef, ResourcePath, Url}; pub use actix_server::Server; pub use actix_service::{ diff --git a/src/server.rs b/src/server.rs index 17ff4f657..c302f0352 100644 --- a/src/server.rs +++ b/src/server.rs @@ -106,8 +106,9 @@ where } /// Sets function that will be called once before each connection is handled. - /// It will receive a `&std::any::Any`, which contains underlying connection type and an - /// [Extensions] container so that request-local data can be passed to middleware and handlers. + /// It will receive a `&std::any::Any`, which contains underlying connection type and a + /// [CloneableExtensions] container so that request-local data can be passed to middleware + /// and handlers. /// /// # Connection Types /// - `actix_web::rt::net::TcpStream` when no TLS layer is used.