server.py 217 Bytes
Newer Older
Hamid's avatar
Hamid committed
1
2
3
4
5
6
7
8
9
import http.server
import socketserver

PORT = 8080
Handler = http.server.SimpleHTTPRequestHandler

with socketserver.TCPServer(("", PORT), Handler) as http:
    print("Serving at port", PORT)
    http.serve_forever()