hitbox-tower 0.2.0

Hitbox integration for Tower framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![doc = include_str!("../README.md")]
#![warn(missing_docs)]

/// Future types for the cache service.
pub mod future;
/// Tower layer and builder for cache configuration.
pub mod layer;
/// The Tower service implementation that performs caching.
pub mod service;
/// Upstream adapter for bridging Tower services to Hitbox.
pub mod upstream;

pub use ::http::{Method, StatusCode};
pub use hitbox::config::CacheConfig;
pub use hitbox::{Config, ConfigBuilder};
pub use hitbox_http::DEFAULT_CACHE_STATUS_HEADER;
pub use layer::{Cache, CacheBuilder, NotSet};
pub use upstream::TowerUpstream;