Пример #1
0
 def handler(request):
     body = yield from request.read()
     self.assertEqual(b'', body)
     return web.Response(body=b'OK')
Пример #2
0
 def handler(request):
     self.assertTrue(request.has_body)
     body = yield from request.read()
     return web.Response(body=body)
Пример #3
0
 def handler(request):
     body = yield from request.read()
     self.assertEqual(b'', body)
     return web.Response(body=b'OK')
Пример #4
0
 def handler(request):
     yield from request.read()
     return web.Response(body=b'OK')
Пример #5
0
 def handler(request):
     self.assertTrue(request.has_body)
     body = yield from request.read()
     return web.Response(body=body)
Пример #6
0
 def handler(request):
     yield from request.read()
     return web.Response(body=b'OK')