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

Method __getHeaders

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

Source from the content-addressed store, hash-verified

132 raise Error('Access not enabled - please enable in Preferences > Network')
133
134 def __getHeaders(self):
135 versionString = '{0}'.format(config.version)
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()

Callers 2

getMethod · 0.95
postMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected