Skip to main content

Module http

Module http 

Source
Expand description

HTTP client for the engine REST surface.

Semantics (spec §7, ADR-002):

  • 8 s per-attempt timeout.
  • Retry once on transport errors, 502, 503, 504, with a fixed 500 ms backoff. All other statuses fail immediately with the body carried.
  • Bearer token applied per request when present.
  • All typed helpers go through [Self::get_json] so retry / auth / error mapping lives in exactly one place.

Structs§

HttpClient
HTTP client bound to one engine.
OperatorRequestContext

Enums§

HttpError
Mode
Per-invocation engine-mode override. See HttpClient::with_mode.
RateLimitSource
Where a HttpError::RateBudgetExhausted originated. Rendered as a terse tag in log lines; never user-visible directly.

Functions§

retry_delay
timeout