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 |
#67 in #webassembly
142 downloads per month
17KB
291 lines
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());
lib.rs
:
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());
Dependencies
~3.5–4.5MB
~80K SLoC