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

Function build_add_dpop_header_handler

awscli/botocore/utils.py:4231–4239  ·  view source on GitHub ↗

Builds a before-call handler for calculating and setting the DPoP header

(private_key)

Source from the content-addressed store, hash-verified

4229
4230
4231def build_add_dpop_header_handler(private_key):
4232 """Builds a before-call handler for calculating and setting the DPoP header"""
4233
4234 def _add_dpop_header_handler(**kwargs):
4235 kwargs['params']['headers']['DPoP'] = build_dpop_header(
4236 private_key, kwargs['params']['url']
4237 )
4238
4239 return _add_dpop_header_handler

Callers 2

refresh_credentialsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected