示例#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')