MCPcopy Create free account
hub / github.com/EasyIME/PIME / init_server

Method init_server

python/python3/tornado/test/httpclient_test.py:777–782  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

775
776 @gen.coroutine
777 def init_server():
778 sock, self.port = bind_unused_port()
779 app = Application([("/", HelloWorldHandler)])
780 self.server = HTTPServer(app)
781 self.server.add_socket(sock)
782 event.set()
783
784 def start():
785 self.server_ioloop.run_sync(init_server)

Callers

nothing calls this directly

Calls 5

bind_unused_portFunction · 0.90
ApplicationClass · 0.90
HTTPServerClass · 0.90
add_socketMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected