Skip to main content

Module http

Module http 

Source
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::Client configured 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.