def handler(request): body = yield from request.read() self.assertEqual(b'', body) return web.Response(body=b'OK')
def handler(request): self.assertTrue(request.has_body) body = yield from request.read() return web.Response(body=body)
def handler(request): yield from request.read() return web.Response(body=b'OK')