Skip to main content

build_server_config_static

Function build_server_config_static 

Source
pub fn build_server_config_static(
    certs: Vec<CertificateDer<'static>>,
    key: PrivateKeyDer<'static>,
) -> Result<ServerConfig, String>
Expand description

Build a static (non-reloadable) ServerConfig for the common case.

Used when the caller doesn’t need hot-reload (e.g. integration test environments, or once TLS-toggle is still HardRestart).