wasmtime-wasi-http-plus 0.0.2

An enhanced implementation of wasmtime-wasi-http
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use {::http::*, read_url::*, rustls::client::*, std::result::Result, tokio_rustls::*};

/// Create TLS client configuration.
///
/// Uses (and removes) the following custom headers, which are all URLs to X.509 certificates
/// encoded as PEM (Privacy-Enhanced Mail):
///
/// * XX-Root-Certificates
/// * XX-Certificates
/// * XX-Private-Key
pub fn tls_client_configuration(
    _headers: &mut HeaderMap<HeaderValue>,
    _url_context: &UrlContextRef,
) -> Result<ClientConfig, String> {
    Err("must enable *either* `tls-self-contained` or `tls-platform` features".into())
}