Skip to main content

Module user_agent

Module user_agent 

Source
Expand description

Stable HTTP User-Agent for Polyester SDK clients.

hyper omits User-Agent by default. That accidental omission currently dodges Cloudflare error 1010 (“browser signature banned”), but a WAF rule change that bans missing/unknown signatures would break every Rust client with an error that does not mention Cloudflare. Always send an explicit Polyester identity instead.

Functions§

cloudflare_1010_message
Explain a WAF block that is not an API authentication failure.
is_cloudflare_browser_ban
True when a response body looks like Cloudflare error 1010.
user_agent
Explicit SDK identity for edge WAF allowlisting.