import requests
for i in range(3):
g = requests.get('http://some-url/')
print "request done"
For each request that starts, does ‘it’ wait for the response to arrive(completely finished loading response) before doing another request?
I have compared the time it takes to finish these requests with requests from my browser and the loading time is quite faster with Requests. I’m not sure if that is solely because of my browser executing javascript, loading images etc. or also because of how Requests works.
Yes, each request is done synchronously, so the next one will only start after the previous one finished. Quoting the release notes: