Struct conjure_runtime::UserAgent
source · pub struct UserAgent { /* private fields */ }Expand description
A representation of an HTTP User-Agent header value.
Implementations§
source§impl UserAgent
impl UserAgent
sourcepub fn push_agent(&mut self, agent: Agent)
pub fn push_agent(&mut self, agent: Agent)
Adds an additional informational agent to the User-Agent.
sourcepub fn set_node_id(&mut self, node_id: &str)
pub fn set_node_id(&mut self, node_id: &str)
Sets the identifier of this node.
For example, this could be the node’s IP address.
sourcepub fn informational(&self) -> &[Agent]
pub fn informational(&self) -> &[Agent]
Returns additional informational agents.