httpx
httpx copied to clipboard
use http2 and proxies,timeout not work
trafficstars
code
with httpx.Client(
headers=headers,
http2=True,
proxies=proxies,
timeout=10,
) as client:
log.debug("step1")
r = client.get(url, timeout=10)
log.debug("step2")
the code stop in step1 for a long time