Registry / http-client / http-cache

http-cache

JSON →
library0.21.0rscratesunverified

An HTTP caching middleware for use with HTTP clients and servers.

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

HttpCache
use http_cache::HttpCache;

Create a caching HTTP client.

use http_cache::HttpCache; use http_cache_reqwest::CachingClient; let client = CachingClient::default(); let response = client.get("https://example.com").await.unwrap();
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio) for the default reqwest backend.
fix
Add tokio as a dependency and use #[tokio::main] or similar.
affects: >=0.21.0
Upgrade
Version history
0.21.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources