I'm working on parallel GET functionality with apply_async as described in Python Requests: Don't wait for request to finish. My problem is that I need to supply headers to every GET request and I fail to figure out how to do that.
I'm trying along these lines:
items.append(pool.apply_async(requests.get, [url, "", {"header1":"value1", "header2":"value2"}]))
and many variations of the theme without success.
I would appreciate information how to work my way through this.
Thanks!