MCPcopy Create free account
hub / github.com/aws/aws-cli / _encode_headers

Method _encode_headers

awscli/botocore/endpoint.py:137–141  ·  view source on GitHub ↗
(self, headers)

Source from the content-addressed store, hash-verified

135 return prepared_request
136
137 def _encode_headers(self, headers):
138 # In place encoding of headers to utf-8 if they are unicode.
139 for key, value in headers.items():
140 if isinstance(value, str):
141 headers[key] = value.encode('utf-8')
142
143 def prepare_request(self, request):
144 self._encode_headers(request.headers)

Callers 1

prepare_requestMethod · 0.95

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected