Registry / http-client / reqwest-wasm

reqwest-wasm

JSON →
library0.11.16rscratesunverified

A higher level HTTP client library for WebAssembly targets.

# Cargo.toml [dependencies] reqwest-wasm = "0.11.16"
INSTALL
IMPORT
SIG · REQWEST-WASM
R
reqwest-wasm
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_wasm::Client;

Sends a GET request using the WASM-compatible client.

use reqwest_wasm::Client; async fn fetch() -> Result<(), reqwest_wasm::Error> { let client = Client::new(); let resp = client.get("https://httpbin.org/get").send().await?; println!("Status: {}", resp.status()); Ok(()) }
Debug
Known issues
gotchaOnly works in WebAssembly environments; not compatible with native targets.
fix
Use the standard `reqwest` crate for native builds.
affects: *
Upgrade
Version history
0.11.16latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
12
OpenAI (training)
1
Resources
reqwest-wasm — cargo add reqwest-wasm · libregistry