Registry / http-client / http-cache-reqwest

http-cache-reqwest

JSON →
library0.16.0rscratesunverified

HTTP cache middleware implementation for the reqwest HTTP client.

# Cargo.toml [dependencies] http-cache-reqwest = "0.16.0"
INSTALL
IMPORT
SIG · HTTP-CACHE-REQWEST
H
http-cache-reqwest
http-clientrustv0.16.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.

CachingClient
use http_cache_reqwest::CachingClient;

Create a caching HTTP client with reqwest.

use http_cache_reqwest::CachingClient; use reqwest::Client; #[tokio::main] async fn main() { let client = CachingClient::new(Client::new()); let resp = client.get("https://example.com").send().await.unwrap(); println!("Status: {}", resp.status()); }
Debug
Known issues
gotchaRequires an async runtime like tokio.
fix
Add tokio as a dependency and use #[tokio::main] or similar.
affects: >=0.16.0
Upgrade
Version history
0.16.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
http-cache-reqwest — cargo add http-cache-reqwest · libregistry