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

Method handler

tests/test_web_websocket_functional.py:90–97  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

88
89 @asyncio.coroutine
90 def handler(request):
91 ws = web.WebSocketResponse()
92 yield from ws.prepare(request)
93 msg = yield from ws.receive_str()
94 ws.send_str(msg+'/answer')
95 yield from ws.close()
96 closed.set_result(1)
97 return ws
98
99 @asyncio.coroutine
100 def go():

Callers

nothing calls this directly

Calls 11

prepareMethod · 0.95
receive_strMethod · 0.95
send_strMethod · 0.95
closeMethod · 0.95
receive_bytesMethod · 0.95
send_bytesMethod · 0.95
receiveMethod · 0.95
pingMethod · 0.95
pongMethod · 0.95
receive_msgMethod · 0.95
set_statusMethod · 0.80

Tested by

no test coverage detected