Registry / http-client / deno-fetch

deno-fetch

JSON →
library0.275.0rscratesunverified

Implements the Fetch API for Deno, enabling HTTP requests.

# Cargo.toml [dependencies] deno_fetch = "0.275.0"
INSTALL
IMPORT
SIG · DENO-FETCH
D
deno-fetch
http-clientrustv0.275.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.

fetch
use deno_fetch::fetch;

Performs a simple HTTP GET request using the fetch function.

use deno_fetch::fetch; #[tokio::main] async fn main() { let response = fetch("https://example.com").await.unwrap(); println!("Status: {}", response.status()); }
Debug
Known issues
gotchaRequires an async runtime (Tokio) and may need specific feature flags.
fix
Add tokio as a dependency and enable the 'tokio' feature if needed.
affects: >=0.275.0
Upgrade
Version history
0.275.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
Resources