requests is limited to HTTP/1.1. With httpx, you can build a client with httpx.Client(http1=False, http2=True), so that HTTP/2 is always used.
HTTP/3 support would be nice (it can be dramatically faster). RCSB doesn't support it yet, and we would need a separate package (aioquic), which is HTTP/3-only.
requests
is limited to HTTP/1.1. Withhttpx
, you can build a client withhttpx.Client(http1=False, http2=True)
, so that HTTP/2 is always used.HTTP/3 support would be nice (it can be dramatically faster). RCSB doesn't support it yet, and we would need a separate package (aioquic), which is HTTP/3-only.
This line:
Can be:
I'm also proposing replacing
PDB_URL
with an attributeself.endpoint
and10
withself.timeout_sec
.