MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / __getProxies

Method __getProxies

service/network.py:138–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 return {'User-Agent': 'pyfa {0} (python-requests {1})'.format(versionString, requests.__version__)}
137
138 def __getProxies(self):
139 # python-requests supports setting proxy for request as parameter to get() / post()
140 # in a form like: proxies = { 'http': 'http://10.10.1.10:3128', 'https': 'http://10.10.1.10:1080' }
141 # or with HTTP Basic auth support: proxies = {'http': 'http://user:pass@10.10.1.10:3128/'}
142 # then you do: requests.get('http://example.org', proxies=proxies)
143 return NetworkSettings.getInstance().getProxySettingsInRequestsFormat()

Callers 2

getMethod · 0.95
postMethod · 0.95

Calls 2

getInstanceMethod · 0.45

Tested by

no test coverage detected