1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 16:55:08 +02:00

fix connection data on keep alive connections

This commit is contained in:
Rob Ede
2021-07-12 18:37:41 +01:00
parent 293c52c3ef
commit 3b2e2acb6c
4 changed files with 75 additions and 31 deletions

View File

@ -107,10 +107,10 @@ where
/// 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.
///
/// For example:
/// - `actix_tls::openssl::SslStream<actix_web::rt::net::TcpStream>` when using openssl.
/// # Connection Types
/// - `actix_web::rt::net::TcpStream` when no TLS layer is used.
/// - `actix_tls::rustls::TlsStream<actix_web::rt::net::TcpStream>` when using rustls.
/// - `actix_web::rt::net::TcpStream` when no encryption is used.
/// - `actix_tls::openssl::SslStream<actix_web::rt::net::TcpStream>` when using openssl.
///
/// See `on_connect` example for additional details.
pub fn on_connect<CB>(self, f: CB) -> HttpServer<F, I, S, B>