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

Method _consume_headers

awscli/botocore/awsrequest.py:151–161  ·  view source on GitHub ↗
(self, fp)

Source from the content-addressed store, hash-verified

149 self.send(message_body)
150
151 def _consume_headers(self, fp):
152 # Most servers (including S3) will just return
153 # the CLRF after the 100 continue response. However,
154 # some servers (I've specifically seen this for squid when
155 # used as a straight HTTP proxy) will also inject a
156 # Connection: keep-alive header. To account for this
157 # we'll read until we read '\r\n', and ignore any headers
158 # that come immediately after the 100 continue response.
159 current = None
160 while current != b'\r\n':
161 current = fp.readline()
162
163 def _handle_expect_response(self, message_body):
164 # This is called when we sent the request headers containing

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected