MCPcopy
hub / github.com/constverum/ProxyBroker / get

Method get

proxybroker/server.py:37–46  ·  view source on GitHub ↗
(self, scheme)

Source from the content-addressed store, hash-verified

35 self._max_resp_time = max_resp_time
36
37 async def get(self, scheme):
38 scheme = scheme.upper()
39 for priority, proxy in self._pool:
40 if scheme in proxy.schemes:
41 chosen = proxy
42 self._pool.remove((proxy.priority, proxy))
43 break
44 else:
45 chosen = await self._import(scheme)
46 return chosen
47
48 async def _import(self, expected_scheme):
49 while True:

Callers 15

__init__Method · 0.45
fetchFunction · 0.45
fetchFunction · 0.45
saveFunction · 0.45
showFunction · 0.45
saveFunction · 0.45
saveFunction · 0.45
_types_passedMethod · 0.45
_decompress_contentFunction · 0.45
handleFunction · 0.45
__init__Method · 0.45
parse_headersFunction · 0.45

Calls 1

_importMethod · 0.95

Tested by 1

__init__Method · 0.36