MCPcopy Index your code
hub / github.com/aws/aws-cli / request

Method request

awscli/botocore/awsrequest.py:87–98  ·  view source on GitHub ↗
(self, method, url, body=None, headers=None, *args, **kwargs)

Source from the content-addressed store, hash-verified

85 self.response_class = self._original_response_cls
86
87 def request(self, method, url, body=None, headers=None, *args, **kwargs):
88 if headers is None:
89 headers = {}
90 self._response_received = False
91 if headers.get('Expect', b'') == b'100-continue':
92 self._expect_header_set = True
93 else:
94 self._expect_header_set = False
95 self.response_class = self._original_response_cls
96 rval = super().request(method, url, body, headers, *args, **kwargs)
97 self._expect_header_set = False
98 return rval
99
100 def _convert_to_bytes(self, mixed_buffer):
101 # Take a list of mixed str/bytes and convert it

Calls

no outgoing calls