(self)
| 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() |
no test coverage detected