RODEO

HTTP Client

Internal HTTP layer powering SDK requests

Methods

client.get<T>(path, auth?)
client.post<T>(path, body?, auth?)
client.patch<T>(path, body, auth?)
client.delete(path, auth?)

All methods prepend endpoint, add Authorization: Bearer {apiKey}, set Content-Type: application/json, parse JSON responses, and throw typed errors for non-2xx.

Errors

HTTP StatusSDK Error
401, 403RodeoAuthError
404RodeoNotFoundError
422RodeoValidationError (includes details)
429RodeoRateLimitError (includes retryAfter)
Other 4xx/5xxRodeoError

Timeout

Requests exceeding the configured timeout (default 30s) throw a standard Error. Applies to the full request lifecycle.

Auth override

All methods accept an optional auth parameter to override the default API key per-request.