This repository includes a very simple Python web site, made for demonstration purposes only. Do not use the built-in HTTPServer
class for production purposes!
To try it out:
- Open this repository in Codespaces
- Run the server:
python server.py
- Click 'http://0.0.0.0:8080' in the terminal, which should open the website in a new tab
- Type different paths after the URL to see the effect on the GET requests in the logs
- Try POSTing data by sending HTTP POST requests in the JS console:
fetch('/', {method: 'POST', body: 'posted data'})