Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Esguerra Montana
WebarTTP
Commits
b76c199c
Commit
b76c199c
authored
Jun 17, 2024
by
Esguerra Montana
Browse files
Upload New File
parent
8a8b82a9
Pipeline
#9584
passed with stage
in 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/server.py
0 → 100644
View file @
b76c199c
import
http.server
import
socketserver
PORT
=
8000
Handler
=
http
.
server
.
SimpleHTTPRequestHandler
with
socketserver
.
TCPServer
((
""
,
PORT
),
Handler
)
as
httpd
:
print
(
f
"Serving at port
{
PORT
}
"
)
httpd
.
serve_forever
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment