class

Cjules::Client

Inherits Reference < Object

Constants

BASE_BACKOFF = 500.milliseconds
CONNECT_TIMEOUT = 10.seconds
MAX_ATTEMPTS = 3
MAX_BACKOFF = 8.seconds
READ_TIMEOUT = 30.seconds
RETRYABLE_STATUSES = {429, 500, 502, 503, 504}

POST is excluded from 5xx retry: the create endpoint is non-idempotent and cjules new --reconcile-on-error already handles ambiguous failures. 429 is retried on every method since it signals server-side throttling.

Constructors

new(config : Config)
Source

Instance methods

delete(path : String) : String
Source
get(path : String, query : Hash(String, String) | Nil = nil) : String
Source
post(path : String, body : String | Nil = nil) : String
Source

Nested types