Skip to main content

hitbox_tower/
lib.rs

1#![doc = include_str!("../README.md")]
2#![warn(missing_docs)]
3
4/// Future types for the cache service.
5pub mod future;
6/// Tower layer and builder for cache configuration.
7pub mod layer;
8/// The Tower service implementation that performs caching.
9pub mod service;
10/// Upstream adapter for bridging Tower services to Hitbox.
11pub mod upstream;
12
13pub use ::http::{Method, StatusCode};
14pub use hitbox::config::CacheConfig;
15pub use hitbox::{Config, ConfigBuilder};
16pub use hitbox_http::DEFAULT_CACHE_STATUS_HEADER;
17pub use layer::{Cache, CacheBuilder, NotSet};
18pub use upstream::TowerUpstream;