Skip to content

Conversation

@drish
Copy link
Collaborator

@drish drish commented Nov 12, 2025

Summary by cubic

Add HTTP response headers to all JSON object responses by injecting a headers field into the returned dict. Clients can read x-request-id and rate limit info without breaking existing code; top-level list responses are unchanged.

  • New Features
    • Capture response headers and include them under headers in all dict responses.
    • Introduced BaseResponse TypedDict and updated all response types to inherit it (headers is optional and type-safe).
    • Added usage example and integration test for headers access.

Written for commit 557e2cd. Summary will update automatically on new commits.

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