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

feat(client): use max http version of client by default instead of http 1.1 #1166

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joelwurtz
Copy link
Contributor

Currently, when creating a request, it's default to HTTP1.1 (which is the default value for this field), end user have to explicitly set the version to HTTP2 / HTTP3.

Which makes the following comment By default request's HTTP version depends on network stream wrong since it will always use HTTP1.1 by default

New behavior will use the max http version of the client by default and downgrade to one that it supported (was already the case, but changed the comment to point it out).

Downside of this, is when HTTP3 is enabled and in max version it may timeout.

I'm also wondering if this should be renamed to max_http_version for the request method it may reflect better the intention behind that.

@joelwurtz joelwurtz force-pushed the feat/use-max-version-by-default branch from 5ae70dd to 35eb6e6 Compare December 19, 2024 16:48
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.

1 participant