pub struct HttpCachePolicy {
pub ignore_upstream_cache_control: bool,
pub default_ttl: Option<Duration>,
pub vary_headers: Vec<String>,
pub bypass: bool,
pub tags: Vec<String>,
}Expand description
Configuration for HTTP caching behavior
Fields§
§ignore_upstream_cache_control: boolIgnore Cache-Control from upstream?
default_ttl: Option<Duration>Default TTL if none specified
vary_headers: Vec<String>Header names to include in Vary key
bypass: boolBypass cache completely?
Tags to apply to cached entries (for invalidation)
Implementations§
Trait Implementations§
Source§impl Clone for HttpCachePolicy
impl Clone for HttpCachePolicy
Source§fn clone(&self) -> HttpCachePolicy
fn clone(&self) -> HttpCachePolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpCachePolicy
impl Debug for HttpCachePolicy
Source§impl Default for HttpCachePolicy
impl Default for HttpCachePolicy
Source§fn default() -> HttpCachePolicy
fn default() -> HttpCachePolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpCachePolicy
impl RefUnwindSafe for HttpCachePolicy
impl Send for HttpCachePolicy
impl Sync for HttpCachePolicy
impl Unpin for HttpCachePolicy
impl UnwindSafe for HttpCachePolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more