1#![doc = include_str!("../README.md")]
2
3mod middleware;
4mod upstream;
5
6pub use middleware::{CacheMiddleware, CacheMiddlewareBuilder, NotSet};
7pub use upstream::ReqwestUpstream;
8
9pub use hitbox_http::{
11 BufferedBody, CacheableHttpRequest, CacheableHttpResponse, DEFAULT_CACHE_STATUS_HEADER,
12 SerializableHttpResponse, extractors, predicates,
13};
14
15pub use reqwest::Body as ReqwestBody;
17
18pub use hitbox::config::CacheConfig;
20pub use hitbox::policy::PolicyConfig;
21pub use hitbox::{Config, ConfigBuilder};
22pub use hitbox_core::DisabledOffload;
23
24pub use hitbox::concurrency::{
26 BroadcastConcurrencyManager, ConcurrencyManager, NoopConcurrencyManager,
27};