(self, fp)
| 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 |
no outgoing calls
no test coverage detected