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

Function main

tests/autobahn/server.py:34–41  ·  view source on GitHub ↗
(loop)

Source from the content-addressed store, hash-verified

32
33@asyncio.coroutine
34def main(loop):
35 app = web.Application(loop=loop)
36 app.router.add_route('GET', '/', wshandler)
37
38 handler = app.make_handler()
39 srv = yield from loop.create_server(handler, '127.0.0.1', 9001)
40 print("Server started at http://127.0.0.1:9001")
41 return app, srv, handler
42
43
44@asyncio.coroutine

Callers 1

server.pyFile · 0.70

Calls 3

make_handlerMethod · 0.95
add_routeMethod · 0.45
create_serverMethod · 0.45

Tested by

no test coverage detected