Registry / http-client / http-req-wasi

http-req-wasi

JSON →
library0.11.1rscratesunverified

HTTP client for the WasmEdge network socket API, derived from the http_req library.

# Cargo.toml [dependencies] http_req_wasi = "0.11.1"
INSTALL
IMPORT
SIG · HTTP-REQ-WASI
H
http-req-wasi
http-clientrustv0.11.1
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.

request
use http_req_wasi::request;

Sends a GET request to example.com and prints the status code.

use http_req_wasi::request; fn main() { let response = request::get("https://example.com").unwrap(); println!("Status: {}", response.status_code()); }
Debug
Known issues
gotchaOnly works on WasmEdge runtime with network socket support.
fix
Ensure the application runs on WasmEdge with the appropriate network capabilities.
affects: >=0.11.0
Upgrade
Version history
0.11.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
http-req-wasi — cargo add http-req-wasi · libregistry