All requests go through the session registry. This allows requests made from the same Python thread to share TCP connections which greatly improves the performance of HTTP requests. It also gives us a place to globally configure sessions (for things like retries, global headers, etc.)
If this looks like a good idea to other people, I'll probably see if requests-toolbelt would accept a PR with this and we can switch to that if they accept it and make a release with it.
All requests go through the session registry. This allows requests made from the same Python thread to share TCP connections which greatly improves the performance of HTTP requests. It also gives us a place to globally configure sessions (for things like retries, global headers, etc.)
If this looks like a good idea to other people, I'll probably see if requests-toolbelt would accept a PR with this and we can switch to that if they accept it and make a release with it.
fixes #336