MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / expect_handler

Function expect_handler

tests/test_client_functional.py:2360–2365  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

2358 return web.Response()
2359
2360 async def expect_handler(request):
2361 nonlocal expect_called
2362 expect = request.headers.get(hdrs.EXPECT)
2363 if expect.lower() == "100-continue":
2364 request.transport.write(b"HTTP/1.1 100 Continue\r\n\r\n")
2365 expect_called = True
2366
2367 app = web.Application()
2368 app.router.add_post("/", handler, expect_handler=expect_handler)

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected