MCPcopy
hub / github.com/aws/aws-cli / http_post

Function http_post

tests/integration/botocore/test_s3.py:61–73  ·  view source on GitHub ↗
(url, data, files)

Source from the content-addressed store, hash-verified

59
60
61def http_post(url, data, files):
62 http = urllib3.PoolManager(
63 cert_reqs='CERT_REQUIRED', ca_certs=DEFAULT_CA_BUNDLE
64 )
65 merged_data = OrderedDict()
66 merged_data.update(data)
67 merged_data.update(files)
68 response = http.request(
69 'POST',
70 url,
71 fields=merged_data,
72 )
73 return response
74
75
76def setup_module():

Callers 2

Calls 2

requestMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected