Crate wasi_http_client

source ·
Expand description

§wasi-http-client

wasi_http_client is an HTTP client library for WASI Preview 2, making it easier to send http(s) requests in WASI components.

let resp = Client::new()
    .post("https://httpbin.org/post")
    .connect_timeout(Duration::from_secs(5))
    .send()?;

println!("status code: {}", resp.status());

Structs§

Enums§

  • This type corresponds to HTTP standard Methods.