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

Method _construct_basic_auth

awscli/botocore/httpsession.py:266–269  ·  view source on GitHub ↗
(self, username, password)

Source from the content-addressed store, hash-verified

264 return 'http://' + proxy_url
265
266 def _construct_basic_auth(self, username, password):
267 auth_str = f'{username}:{password}'
268 encoded_str = b64encode(auth_str.encode('ascii')).strip().decode()
269 return f'Basic {encoded_str}'
270
271 def _get_auth_from_url(self, url):
272 parsed_url = urlparse(url)

Callers 1

proxy_headers_forMethod · 0.95

Calls 2

decodeMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected