Prepare the request by connecting to a proxy server. The host and type will replace those of the instance, and the instance’s selector will be the original URL given in the constructor.
urllib.request/Request.set_proxy
Request.set_proxy