MCPcopy Create free account
hub / github.com/NobyDa/Script / startServer

Function startServer

IPA-Installer/IPA-Installer-Pythonista.py:16–23  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

14
15httpd = None
16def startServer(port):
17 Handler = http.server.SimpleHTTPRequestHandler
18
19 global httpd
20 httpd = http.server.HTTPServer(("", port), Handler)
21
22 print("Start server at port", port)
23 httpd.serve_forever()
24
25def start(port):
26 thread = Thread(target=startServer, args=[port])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected