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

Function get_checksum_algorithm_headers

awscli/botocore/utils.py:3120–3134  ·  view source on GitHub ↗

Returns the list of header names from the request which start with "x-amz-checksum-", otherwise returns an empty list.

(params)

Source from the content-addressed store, hash-verified

3118
3119
3120def get_checksum_algorithm_headers(params):
3121 """
3122 Returns the list of header names from the request which start with
3123 "x-amz-checksum-", otherwise returns an empty list.
3124 """
3125 headers = params['headers']
3126 checksum_headers = []
3127
3128 # If a header matching the x-amz-checksum-* pattern is present, we
3129 # extract and return the algorithm name.
3130 for header in headers:
3131 match = CHECKSUM_HEADER_PATTERN.match(header)
3132 if match:
3133 checksum_headers.append(header)
3134 return checksum_headers
3135
3136
3137def has_checksum_header(params):

Callers 2

has_checksum_headerFunction · 0.85

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected