MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / start_test_server

Function start_test_server

test/7.multiple_session_impliment.py:47–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47def start_test_server():
48 pywebio.enable_debug()
49
50 import tornado.ioloop
51 import tornado.web
52 from pywebio.platform.tornado import webio_handler
53 from pywebio import STATIC_PATH
54
55 application = tornado.web.Application([
56 (r"/", webio_handler(async_target, cdn=False)),
57 (r"/io2", webio_handler(target, cdn=False)),
58 (r"/(.*)", tornado.web.StaticFileHandler,
59 {"path": STATIC_PATH, 'default_filename': 'index.html'})
60 ])
61 application.listen(port=8080, address='127.0.0.1')
62 tornado.ioloop.IOLoop.current().start()
63
64
65if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

webio_handlerFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…