Expand description
HTTP client helpers shared by every stage that talks to a remote.
All anodizer HTTP traffic should go through blocking_client(...) so that
the User-Agent, default-roots, and timeout policy stay consistent across
publishers, announcers, and the release backends.
Constants§
- USER_
AGENT - Canonical user-agent string sent with every anodizer HTTP request.
Functions§
- async_
client - Async equivalent of
blocking_client. - blocking_
client - Build a blocking
reqwest::Clientconfigured with the canonical UA, the requested per-request timeout, and the platform’s built-in roots. - body_of
- Read an HTTP response body to a
String, returning a descriptive placeholder on read failure. - body_
of_ blocking - Blocking analogue of
body_of. - body_
read_ error_ message - Format an HTTP body-read failure as a descriptive placeholder string.