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

Function _set_compression_header

awscli/botocore/compress.py:120–125  ·  view source on GitHub ↗
(headers, encoding)

Source from the content-addressed store, hash-verified

118
119
120def _set_compression_header(headers, encoding):
121 ce_header = headers.get('Content-Encoding')
122 if ce_header is None:
123 headers['Content-Encoding'] = encoding
124 else:
125 headers['Content-Encoding'] = f'{ce_header},{encoding}'
126
127
128COMPRESSION_MAPPING = {'gzip': _gzip_compress_body}

Callers 1

maybe_compress_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected