pub struct Req<'a> { /* private fields */ }Expand description
Rust proxy for the C req struct.
Its methods provide getters and setters for various fields that control how the client request
is processed by Varnish.
Implementations§
Source§impl Req<'_>
impl Req<'_>
Sourcepub fn hash_always_miss(&self) -> bool
pub fn hash_always_miss(&self) -> bool
Return whether this request bypasses the cache lookup and is always treated as a miss.
Equivalent to req.hash_always_miss in VCL.
Sourcepub fn set_hash_always_miss(&mut self, val: bool)
pub fn set_hash_always_miss(&mut self, val: bool)
Force this request to be treated as a cache miss, skipping any existing cached object.
Equivalent to setting req.hash_always_miss in VCL.
Sourcepub fn hash_ignore_busy(&self) -> bool
pub fn hash_ignore_busy(&self) -> bool
Return whether this request ignores busy (locked) cache objects and fetches from the backend instead of waiting.
Equivalent to req.hash_ignore_busy in VCL.
Sourcepub fn set_hash_ignore_busy(&mut self, val: bool)
pub fn set_hash_ignore_busy(&mut self, val: bool)
Make this request skip waiting on busy cache objects and go straight to the backend.
Equivalent to setting req.hash_ignore_busy in VCL.
Sourcepub fn hash_ignore_vary(&self) -> bool
pub fn hash_ignore_vary(&self) -> bool
Return whether this request ignores Vary headers during cache lookup.
Equivalent to req.hash_ignore_vary in VCL.
Sourcepub fn set_hash_ignore_vary(&mut self, val: bool)
pub fn set_hash_ignore_vary(&mut self, val: bool)
Make this request ignore Vary headers during cache lookup, collapsing all variants into one cache key.
Equivalent to setting req.hash_ignore_vary in VCL.