Reputation: 412
I know the following about various python HTTP libraries:
The other major HTTP request library I'm aware of is urllib3. This is what OpenAPI Generator uses by default when generating python client libraries.
My Questions are:
Can urrlib3 be configured to make HTTP/2 requests?
I cannot find any information on http2 support in the documentation, and through my testing of a generated OpenAPI client, all requests are HTTP/1.1. If the answer is no currently, are the maintainers planning HTTP/2 support? I cannot find any evidence of this in the project's open issues.
Upvotes: 10
Views: 5685
Reputation: 1591
There is an alternative to the listed HTTP/2 clients: pycurl can perform HTTP/2 requests very efficiently if libcurl is compiled with HTTP/2 support (same apply to HTTP/3). The drawback is it's more complex to install.
Upvotes: 0
Reputation: 412
I asked about this in the urllib3 discord, and got an answer from one of the maintainers that corroborates what Tim Roberts commented;
Upvotes: 9