Skip to content

Comments

feat: add headers to all responses + ResendError#179

Merged
drish merged 6 commits intomainfrom
feat/headers-all-responses
Feb 18, 2026
Merged

feat: add headers to all responses + ResendError#179
drish merged 6 commits intomainfrom
feat/headers-all-responses

Conversation

@drish
Copy link
Collaborator

@drish drish commented Nov 12, 2025

Summary by cubic

Add HTTP response headers to all JSON dict responses under a headers key and surface headers on ResendError. Clients can read x-request-id and rate limit data; top-level array responses stay the same.

  • New Features
    • Inject headers on all dict responses (including list wrappers).
    • Added BaseResponse; all response TypedDicts now extend it (headers optional).
    • Errors now include headers; ResendError and subclasses expose values like retry-after.

Written for commit f2e67d2. Summary will update on new commits.

@andre-vm andre-vm mentioned this pull request Feb 12, 2026
@drish drish requested a review from gabrielmfern February 16, 2026 15:23
@drish drish marked this pull request as ready for review February 16, 2026 15:23
@drish drish changed the title feat: add headers to all responses feat: add headers to all responses + ResendError Feb 16, 2026
@drish drish merged commit f10bf39 into main Feb 18, 2026
20 checks passed
@drish drish deleted the feat/headers-all-responses branch February 18, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants