Part of bzrlib.transport.http._urllib2_wrappers View In Hierarchy
|Method||set_proxy||Set the proxy without remembering the proxied host.|
Inherited from Request:
|Parameters||request||the first request sent to the proxied host, already processed by the opener (i.e. proxied_host is already set).|
We already know the proxied host by definition, the CONNECT request occurs only when the connection goes through a proxy. The usual processing (masquerade the request so that the connection is done to the proxy while the request is targeted at another host) does not apply here. In fact, the connection is already established with proxy and we just want to enable the SSL tunneling.