Part of bzrlib.transport.http._urllib2_wrappers View In Hierarchy
urllib2 provides no way to access the HTTPConnection object internally used. But we need it in order to achieve connection sharing. So, we add it to the request just before it is processed, and then we override the do_open method for http[s] requests in AbstractHTTPHandler.
Method | __init__ | Undocumented |
Method | create_connection | Undocumented |
Method | capture_connection | Capture or inject the request connection. |
Method | http_request | Undocumented |
Method | https_request | Undocumented |
Capture or inject the request connection.
Two cases: - the request have no connection: create a new one,