MCPcopy
hub / github.com/aio-libs/aiohttp / update_expect_continue

Method update_expect_continue

aiohttp/client_reqrep.py:359–366  ·  view source on GitHub ↗
(self, expect=False)

Source from the content-addressed store, hash-verified

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):

Callers 1

__init__Method · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected