Skip to main content

create_server_with_config

Function create_server_with_config 

Source
pub fn create_server_with_config(
    config: Arc<ServerConfig>,
    hook: ConnHook,
    request_listener: Value,
) -> Value
Expand description

Build a TLS server backed by a caller-supplied per-connection hook (used by https::create_server). Returns the TLSServer emitter; the caller stores its requestListener and registers the hook.