-
Current: client = httpx.Client(http1=True, http2=True) If HTTP3 be added: client = httpx.Client(http1=True, http2=True, http3=True) Suggested: version = httpx.Version.HTTP1_1 | httpx.Version.HTTP2 | httpx.Version.HTTP3
client = httpx.Client(version=version) |
Beta Was this translation helpful? Give feedback.
Answered by
zanieb
Dec 29, 2023
Replies: 1 comment 6 replies
-
Isn't the boolean about allowing the connection to be upgraded to the given HTTP version? I don't see how this has the same meaning as a union type. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I still don't see this as an improved user experience. It's less intuitive and since people usually want to allow connections to upgrade to a newer HTTP version but not fail on an older version also it's less easy to use i.e. you'd need to union multiple types and understand flag enums.