pub struct OriginAgentCluster(/* private fields */);
Expand description
Manages Origin-Agent-Cluster
header
The Origin-Agent-Cluster HTTP request header indicates that the client prefers an “origin agent cluster” (OAC) for the origin of the resource being requested. An OAC is a cluster of servers that are controlled by the same entity as the origin server, and that are geographically close to the client. The OAC is used to provide the client with a better experience, for example by serving content from a server that is close to the client, or by serving content that is optimized for the client’s device.
§Values
- 0: The client does not prefer an OAC.
- 1: The client prefers an OAC.
§Examples
use helmet_core::OriginAgentCluster;
let origin_agent_cluster = OriginAgentCluster::new(true);
Implementations§
Trait Implementations§
Source§impl Clone for OriginAgentCluster
impl Clone for OriginAgentCluster
Source§fn clone(&self) -> OriginAgentCluster
fn clone(&self) -> OriginAgentCluster
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for OriginAgentCluster
impl RefUnwindSafe for OriginAgentCluster
impl Send for OriginAgentCluster
impl Sync for OriginAgentCluster
impl Unpin for OriginAgentCluster
impl UnwindSafe for OriginAgentCluster
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