Documentation
¶
Overview ¶
Package httpx provides the shared HTTP client used by every operation command. It injects auth, identity, an idempotency key on mutations, and retries on transient failures (429 and 5xx).
Index ¶
Constants ¶
View Source
const ( DefaultTimeout = 60 * time.Second DefaultMaxRetries = 3 )
Defaults for the shared client. The CLI exposes flags to override them per invocation.
Variables ¶
View Source
var Version = "dev"
Version is overwritten at build time by the release pipeline.
Functions ¶
func New ¶
New returns an *http.Client wired with auth + identity headers, idempotency keys on non-idempotent methods, and retry-on-transient-failure semantics.
func NewWithOptions ¶
NewWithOptions builds a client for callers that need to tune retries or timeout. Intended for tests that want a tighter loop.
Types ¶
Click to show internal directories.
Click to hide internal directories.