Struct aws_http::user_agent::AwsUserAgent [−][src]
pub struct AwsUserAgent { /* fields omitted */ }
Expand description
AWS User Agent
Ths struct should be inserted into the PropertyBag
during operation construction. UserAgentStage
reads AwsUserAgent
from the property bag and sets the User-Agent
and x-amz-user-agent
headers.
Implementations
Load a User Agent configuration from the environment
This utilizes BUILD_METADATA
from aws_types
to capture the Rust version & target platform. ApiMetadata
provides
the version & name of the specific service.
For test purposes, construct an environment-independent User Agent
Without this, running CI on a different platform would produce different user agent strings
Sets the app name for the user agent.
Sets the app name for the user agent.
Generate a new-style user agent style header
This header should be set at x-amz-user-agent
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AwsUserAgent
impl Send for AwsUserAgent
impl Sync for AwsUserAgent
impl Unpin for AwsUserAgent
impl UnwindSafe for AwsUserAgent
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more