Skip to main content

Module user_agent

Module user_agent 

Source
Expand description

The User-Agent every HTTP-backed crate in this workspace sends.

A request that sends no User-Agent is traffic a provider cannot attribute: Azure reads it for telemetry, throttling diagnostics and supportability, and other providers use it the same way. Upstream identifies itself per package (#9223).

Only the format lives here. This crate deliberately has no reqwest dependency, so each provider crate builds its own client and passes this string to reqwest::ClientBuilder::user_agent — which keeps the one format shared without dragging an HTTP stack into the core.

Constants§

USER_AGENT_PRODUCT
The product token every request from this port carries.

Functions§

user_agent
The User-Agent value for a request made by component at version.