pub async fn start_server(
config: impl Into<ServerConfigHolder>,
tls_identity: Option<TlsIdentity>,
registry: Arc<PeerRegistry>,
event_tx: Option<Sender<ServerTransferEvent>>,
) -> Result<ServerHandle>Expand description
Starts an HTTP/HTTPS server listening on the configured address.
If tls_identity is Some, the server terminates TLS using the identity
and validates client certificates if present (mTLS).
If tls_identity is None, standard plaintext HTTP/1.1 is served.