Skip to content

Interface: ClaudeHttpResponse ​

Defined in: claude/src/driver/claude-http-response.ts:7

HTTP response descriptor returned by ClaudeHttpTransport.sendMessagesRequest().

Carries the HTTP status code, parsed JSON response payload or raw text body from Anthropic /v1/messages, response headers, and optional rate-limit cooldown reset timestamp when status === 429.

Properties ​

PropertyModifierTypeDescriptionDefined in
body?readonlyReadonly<Record<string, unknown>>Parsed JSON response body returned by the Anthropic API when available.claude/src/driver/claude-http-response.ts:11
bodyText?readonlystringOptional raw HTTP response body text before JSON parsing.claude/src/driver/claude-http-response.ts:13
headers?readonlyReadonly<Record<string, string>>Optional HTTP response headers map (retry-after, etc.).claude/src/driver/claude-http-response.ts:15
resetAtMs?readonlynumberOptional epoch timestamp in milliseconds when an HTTP 429 rate limit resets.claude/src/driver/claude-http-response.ts:17
statusreadonlynumberHTTP status code returned by the Anthropic /v1/messages endpoint.claude/src/driver/claude-http-response.ts:9

Released under the MIT License.