Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore non-final responses. #137

Merged
merged 4 commits into from
Oct 24, 2023
Merged

Ignore non-final responses. #137

merged 4 commits into from
Oct 24, 2023

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Sep 12, 2023

While informational responses are not particularly popular, we should at least ignore them. Later, we may expose them to the user.

Types of Changes

  • Bug fix.

Contribution

@ioquatix ioquatix self-assigned this Sep 12, 2023
@ioquatix ioquatix force-pushed the ignore-informational-response branch from 7d2dea1 to f868ac4 Compare October 24, 2023 09:03

# @parameter reason [String] HTTP response line reason phrase
# @parameter reason [String] HTTP response line reason phrase.
def initialize(connection, version, status, reason, headers, body)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks here like the docs for the initialize args aren't fully here, or perhaps I am missing something that ain't visible right here in the commit diff.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, the documentation could do with some improvement I suppose.

@ioquatix
Copy link
Member Author

The HTTP/2 headers processing could probably be better, but it seems to pass all tests.

@ioquatix ioquatix merged commit 789983a into main Oct 24, 2023
30 of 36 checks passed
@ioquatix ioquatix deleted the ignore-informational-response branch October 24, 2023 12:09
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