serve_router_with_tls

Function serve_router_with_tls 

Source
pub async fn serve_router_with_tls(
    port: u16,
    app: Router,
    tls_config: Option<HttpTlsConfig>,
) -> Result<(), Box<dyn Error + Send + Sync>>
Expand description

Serve a provided router on the given port with optional TLS support.