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 Status | SDK Error |
|---|---|
| 401, 403 | RodeoAuthError |
| 404 | RodeoNotFoundError |
| 422 | RodeoValidationError (includes details) |
| 429 | RodeoRateLimitError (includes retryAfter) |
| Other 4xx/5xx | RodeoError |
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.