12 lines
297 B
Python
Executable file
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()
|