Skip to content

Commit 1525433

Browse files
author
Bartosz Jędrzejewski
committedNov 5, 2020
Initial commit
0 parents  commit 1525433

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
 

‎index.html

+8
Original file line numberDiff line numberDiff line change
@@ -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

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import http.server
2+
import socketserver
3+
4+
PORT = 8080
5+
Handler = http.server.SimpleHTTPRequestHandler
6+
7+
with socketserver.TCPServer(("", PORT), Handler) as httpd:
8+
print("serving at port", PORT)
9+
httpd.serve_forever()

0 commit comments

Comments
 (0)
Please sign in to comment.