You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1d58321
Browse filesBrowse the repository at this point in the historyBrowse files
feat: add per-request HTTP headers support to ClientSession
Implements per-request headers functionality across all
ClientSession methods to enable multi-tenant authentication, request
tracing, A/B testing, and debugging while maintaining a single
persistent connection.
Technical Implementation:
- Headers are passed through ClientMessageMetadata to transport layer
- Per-request headers take precedence over connection-level headers
- All methods follow consistent extra_headers: dict[str, str] | None = None pattern
Addresses: #1509
When using HTTP transports, you can pass custom headers on a per-request basis. This enables various use cases such as request tracing, authentication context, A/B testing, debugging flags, and more while maintaining a single persistent connection:
0 commit comments