MCPcopy Index your code
hub / github.com/aws/aws-cli / proxy_headers_for

Method proxy_headers_for

awscli/botocore/httpsession.py:245–252  ·  view source on GitHub ↗

Retrieves the corresponding proxy headers for a given proxy url.

(self, proxy_url)

Source from the content-addressed store, hash-verified

243 return proxy
244
245 def proxy_headers_for(self, proxy_url):
246 """Retrieves the corresponding proxy headers for a given proxy url."""
247 headers = {}
248 username, password = self._get_auth_from_url(proxy_url)
249 if username and password:
250 basic_auth = self._construct_basic_auth(username, password)
251 headers['Proxy-Authorization'] = basic_auth
252 return headers
253
254 @property
255 def settings(self):

Calls 2

_get_auth_from_urlMethod · 0.95
_construct_basic_authMethod · 0.95