Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ futures = "0.3.31"
hex = "0.4.3"
http = "1.3.1"
http-body = "1.0.1"
http-body-util = "0.1.3"
http-cache-semantics = "2.1.0"
http-serde = "2.1.1"
httpdate = "1.0.3"
Expand All @@ -41,7 +42,7 @@ serde = { version = "1.0.219", features = ["derive"] }
sha2 = "0.10.9"
smol = "2.0.2"
tempfile = "3.20.0"
tokio = { version = "1.47.1", default-features = false, features = ["fs", "io-util", "rt"] }
tokio = { version = "1.47.1", default-features = false, features = ["fs", "io-util", "rt", "macros"] }
tokio-util = { version = "0.7.16", features = ["io"] }
tracing = "0.1.41"

Expand All @@ -60,6 +61,7 @@ futures = { workspace = true }
hex = { workspace = true }
http = { workspace = true }
http-body = { workspace = true }
http-body-util = { workspace = true }
http-cache-semantics = { workspace = true }
http-serde = { workspace = true }
httpdate = { workspace = true }
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

## Overview

The `http-cache-stream` crate can be used to cache responses in accordance with
HTTP caching semantics.
The `http-cache-stream` crate can be used to cache streaming responses in
accordance with HTTP caching semantics.

### How this crate differs from [`http-cache`][http-cache]

Expand All @@ -42,8 +42,9 @@ client APIs.
The `http-cache-stream` crate is inspired by the implementation provided by
`http-cache`, but differs in significant ways:

* `http-cache-stream` supports streaming of requests/responses and does not
read a response body into memory to store in the cache.
* ~~`http-cache-stream` supports streaming of requests/responses and does not
read a response body into memory to store in the cache.~~ (streaming is now
supported in `http-cache`)
* The default storage implementation for `http-cache-stream` uses advisory file
locking to coordinate access to storage across multiple processes and threads.
* The default storage implementation is simple and provides no integrity of
Expand Down
9 changes: 5 additions & 4 deletions crates/reqwest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ homepage = { workspace = true }
repository = { workspace = true }

[dependencies]
http-cache-stream = { path = "../.." , version = "0.2.0" }
anyhow = { workspace = true }
bytes = { workspace = true }
futures = { workspace = true }
http-body-util = { workspace = true }
http-cache-stream = { path = "../..", version = "0.2.0" }
reqwest = { workspace = true, features = ["stream"] }
reqwest-middleware = { workspace = true }
futures = { workspace = true }
bytes = { workspace = true }
pin-project-lite = { workspace = true }

[dev-dependencies]
tempfile = { workspace = true }
tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread"] }
Loading