We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
0 parents commit 1525433Copy full SHA for 1525433
index.html
@@ -0,0 +1,8 @@
1
+<html>
2
+ <head>
3
+ <title>Python is awesome!</title>
4
+ </head>
5
+ <body>
6
+ <p>Congratulations! The HTTP Server is working!</p>
7
+ </body>
8
+</html>
server.py
@@ -0,0 +1,9 @@
+import http.server
+import socketserver
+
+PORT = 8080
+Handler = http.server.SimpleHTTPRequestHandler
+with socketserver.TCPServer(("", PORT), Handler) as httpd:
+ print("serving at port", PORT)
9
+ httpd.serve_forever()
0 commit comments