Skip to main content

set_identity

Function set_identity 

pub fn set_identity(value: &'static str) -> Result<(), SetIdentityError>
Available on crate features http and std only.
Expand description

Set the default Server and User-Agent for this process. Applications can install one static string at startup. Its bytes are shared without copying. Explicit header and layer settings take precedence.