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

Method __init__

awscli/botocore/awsrequest.py:66–77  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

64 """
65
66 def __init__(self, *args, **kwargs):
67 super().__init__(*args, **kwargs)
68 self._original_response_cls = self.response_class
69 # This variable is set when we receive an early response from the
70 # server. If this value is set to True, any calls to send() are noops.
71 # This value is reset to false every time _send_request is called.
72 # This is to workaround changes in urllib3 2.0 which uses separate
73 # send() calls in request() instead of delegating to endheaders(),
74 # which is where the body is sent in CPython's HTTPConnection.
75 self._response_received = False
76 self._expect_header_set = False
77 self._send_called = False
78
79 def close(self):
80 super().close()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected