http-cache-stream-reqwest 0.2.0

A caching middleware for reqwest that supports streaming bodies.
Documentation

An implementation of a reqwest middleware that uses http-cache-stream.

use http_cache_stream_reqwest::Cache;
use http_cache_stream_reqwest::storage::DefaultCacheStorage;
use reqwest::Client;
use reqwest_middleware::ClientBuilder;
use reqwest_middleware::Result;

#[tokio::main]
async fn main() -> Result<()> {
    let client = ClientBuilder::new(Client::new())
        .with(Cache::new(DefaultCacheStorage::new("./cache")))
        .build();
    client.get("https://example.com").send().await?;
    Ok(())
}