| Crates.io | wasi-http-client |
| lib.rs | wasi-http-client |
| version | 0.2.1 |
| created_at | 2024-05-11 08:21:44.662781+00 |
| updated_at | 2024-05-20 09:39:14.977108+00 |
| description | HTTP client library for WASI |
| homepage | |
| repository | https://github.com/wacker-dev/wasi-http-client |
| max_upload_size | |
| id | 1236729 |
| size | 31,944 |
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());