Skip to main content

hitbox_reqwest/
lib.rs

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