MCPcopy Create free account
hub / github.com/FastLED/FastLED / start_http_server

Function start_http_server

ci/wasm_test.py:113–121  ·  view source on GitHub ↗

Start HTTP server using Python's built-in http.server.

(port: int, directory: Path)

Source from the content-addressed store, hash-verified

111
112# Start an HTTP server on the dynamic port
113def start_http_server(port: int, directory: Path) -> multiprocessing.Process:
114 """Start HTTP server using Python's built-in http.server."""
115 server_process = multiprocessing.Process(
116 target=_run_http_server,
117 args=(port, str(directory)),
118 daemon=True,
119 )
120 server_process.start()
121 return server_process
122
123
124async def main() -> None:

Callers 1

mainFunction · 0.70

Calls 1

startMethod · 0.45

Tested by

no test coverage detected