Function axum_server_dual_protocol::from_tcp_dual_protocol
source ยท pub fn from_tcp_dual_protocol(
listener: TcpListener,
config: RustlsConfig,
) -> Server<DualProtocolAcceptor>
Expand description
Create a Server
from an existing TcpListener
, accepting both
HTTP and HTTPS on the same port.