Python http

From wikinotes
Revision as of 14:50, 18 December 2022 by Will (talk | contribs) (Created page with "Python standard library for http servers, cookies, and low-level request tools.<br> You can also use it as a quick-and-dirty webserver on the commandline. = Documentation = <blockquote> {| class="wikitable" |- | http || https://docs.python.org/3/library/http.html?highlight=http#module-http |- |} </blockquote><!-- Documentation --> = CLI = <blockquote> <syntaxhighlight lang="bash"> python -m http.server -d src # serve files in 'src' on localhost:8000 </syntaxhighlight>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Python standard library for http servers, cookies, and low-level request tools.
You can also use it as a quick-and-dirty webserver on the commandline.

Documentation

http https://docs.python.org/3/library/http.html?highlight=http#module-http

CLI

python -m http.server -d src  # serve files in 'src' on localhost:8000