python3 -m http.server 8000
python -m http.server 8000
python -m SimpleHTTPServer 8080
import http.server
import socketserver
PORT = 8000
Handler = http.server.SimpleHTTPRequestHandler
httpd = socketserver.TCPServer(("", PORT), Handler)
print("serving at port", PORT)
httpd.serve_forever()
python -m SimpleHTTPServer 8080
from netR import netR
def handler(req, res):
res.write("Hello World")
res.end()
server = netR.http_server()
server.add(handler)
server.listen(port=5000, ip="127.0.0.1")
python3 -m http.server 8000