4 releases
| 0.2.1 | May 20, 2024 |
|---|---|
| 0.2.0 | May 20, 2024 |
| 0.1.1 | May 13, 2024 |
| 0.1.0 | May 11, 2024 |
#230 in #wasi
17KB
291 lines
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());
wasi-http-client
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());
Dependencies
~2.7–4MB
~72K SLoC