(self, expect=False)
| 357 | self.headers[hdrs.CONTENT_LENGTH] = str(len(self.body)) |
| 358 | |
| 359 | def update_expect_continue(self, expect=False): |
| 360 | if expect: |
| 361 | self.headers[hdrs.EXPECT] = '100-continue' |
| 362 | elif self.headers.get(hdrs.EXPECT, '').lower() == '100-continue': |
| 363 | expect = True |
| 364 | |
| 365 | if expect: |
| 366 | self._continue = asyncio.Future(loop=self.loop) |
| 367 | |
| 368 | @asyncio.coroutine |
| 369 | def write_bytes(self, request, reader): |