I’m working on a Python app that needs to send hundreds of HTTP requests in a short period of time to a web service that is SSL-only. Is there any support for HTTP Pipelining in Python?
I was able to solve this using Python's grequests module. As documented in issue 13, it's as simple as:
s = requests.session()
rs = [grequests.get(url, session=s) for url in urls]
grequests.map(rs)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With