Skip to the content.
Run Builtin HTTP Server
Recipes for Python. Hands-on code examples, snippets and guides for daily work.
View on GitHub
Run Builtin HTTP Server
Solution
python
-m
http.server
[
port]
HTTP/1.0
host:
''
port
8000
multi-threads
docroot:
os.getcwd()
reuse address
References
Python -
http.server
module