Skip to main content

start_server_secure_with_api_key

Function start_server_secure_with_api_key 

Source
pub async fn start_server_secure_with_api_key<P: AsRef<Path> + Send + 'static>(
    path: P,
    addr: &str,
    shutdown_rx: Receiver<()>,
    cert_pem: Vec<u8>,
    key_pem: Vec<u8>,
    api_key: String,
) -> Result<(), Box<dyn Error>>
Expand description

Start TLS server requiring an API key for all RPCs.