Merge branch 'drop-content-length-on-get-redirects' of https://github.com/encode/httpx into drop-content-length-on-get-redirects

This commit is contained in:
Tom Christie 2019-09-04 15:06:25 +01:00
commit f3bdbfb01a

View File

@ -1,17 +0,0 @@
import httpx
import time
import requests
url = "https://httpbin.org/stream-bytes/50000000"
start = time.time()
r = requests.get(url)
print("requests %.1f s" % (time.time() - start))
for http_version in ["HTTP/1.1", "HTTP/2"]:
client = httpx.Client(http_versions=http_version)
start = time.time()
r = client.get(url)
print("httpx %s %.1f s" % (http_version, time.time() - start))
print(r.http_version)