Registry / http-client / reqwest-wasi

reqwest-wasi

JSON →
library0.11.16rscratesunverified

higher level HTTP client library

# Cargo.toml [dependencies] reqwest_wasi = "0.11.16"
INSTALL
IMPORT
SIG · REQWEST-WASI
R
reqwest-wasi
http-clientrustv0.11.16
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use reqwest_wasi::Client;

Make a GET request with reqwest-wasi

use reqwest_wasi::Client; #[tokio::main] async fn main() -> Result<(), reqwest_wasi::Error> { let client = Client::new(); let resp = client.get("https://httpbin.org/get").send().await?; println!("Status: {}", resp.status()); Ok(()) }
Debug
Known issues
gotchaRequires tokio runtime and wasi target
fix
Use #[tokio::main] and compile for wasm32-wasi
affects: >=0.11.0
Upgrade
Version history
0.11.16latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
30
Resources
reqwest-wasi — cargo add reqwest-wasi · libregistry