feat: Provide access to HTTP headers on connect or error#77
Merged
jsonbailey merged 3 commits intomainfrom Jan 23, 2026
Merged
Conversation
keelerm84
approved these changes
Jan 23, 2026
keelerm84
approved these changes
Jan 23, 2026
jsonbailey
pushed a commit
that referenced
this pull request
Jan 23, 2026
🤖 I have created a release *beep* *boop* --- ## [2.5.0](2.4.0...2.5.0) (2026-01-23) ### Features * Provide access to HTTP headers on connect or error ([#77](#77)) ([b50d660](b50d660)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Release 2.5.0** > > - Update `VERSION` to `2.5.0` and bump `.release-please-manifest.json` > - Refresh `CHANGELOG.md` highlighting new feature: access to HTTP headers on connect or error > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit d667d4f. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Provides header visibility for both successful connections and error responses.
on_connectcallback inClientto receive case-insensitive HTTP response headers on each successful connection (including reconnects)HTTPStatusErrorandHTTPContentTypeErrorto carry response headers;Client#connectnow passes headers when raising these errorsconnecthandler to maintain backward compatibilityspec/headers_spec.rbwith end-to-end tests for header exposure on success, errors, reconnections, and backward compatibilityWritten by Cursor Bugbot for commit 1a7119a. This will update automatically on new commits. Configure here.