web-c2t/server.py
2022-03-11 17:11:07 -06:00

12 lines
297 B
Python
Executable file

#!/usr/bin/env python3
import http.server
import socketserver
PORT = 4242
Handler = http.server.SimpleHTTPRequestHandler
Handler.extensions_map[".wasm"] = "application/wasm"
with socketserver.TCPServer(("", PORT), Handler) as httpd:
print("serving at port", PORT)
httpd.serve_forever()