MCPcopy Index your code
hub / github.com/python/cpython / set_proxy

Method set_proxy

Lib/urllib/request.py:358–364  ·  view source on GitHub ↗
(self, host, type)

Source from the content-addressed store, hash-verified

356 return self.full_url
357
358 def set_proxy(self, host, type):
359 if self.type == 'https' and not self._tunnel_host:
360 self._tunnel_host = self.host
361 else:
362 self.type= type
363 self.selector = self.full_url
364 self.host = host
365
366 def has_proxy(self):
367 return self.selector == self.full_url

Callers 3

test_http_doubleslashMethod · 0.95
test_proxyMethod · 0.80
proxy_openMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_http_doubleslashMethod · 0.76
test_proxyMethod · 0.64