Registry / http-client / gloo-net

gloo-net

JSON →
library0.7.0rscratesunverified

HTTP requests library for WebAssembly applications, part of the Gloo toolkit.

# Cargo.toml [dependencies] gloo-net = "0.7.0"
INSTALL
IMPORT
SIG · GLOO-NET
G
gloo-net
http-clientrustv0.7.0
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 gloo_net::http::Request;

Make an HTTP GET request from a WASM application

use gloo_net::http::Request; async fn fetch_data() -> Result<String, gloo_net::Error> { let response = Request::get("/api/data").send().await?; let text = response.text().await?; Ok(text) } fn main() { wasm_bindgen_futures::spawn_local(async { match fetch_data().await { Ok(data) => println!("Data: {}", data), Err(e) => eprintln!("Error: {}", e), } }); }
Debug
Known issues
gotchaOnly works in WebAssembly environments (browser/Node.js with wasm-bindgen)
fix
Use wasm-bindgen-futures or wasm-bindgen-test for async execution
affects: >= 0.5.0
Upgrade
Version history
0.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
1
Resources
gloo-net — cargo add gloo-net · libregistry