This is a simple web server written in Python. I built this to understand how HTTP works. Some more info behind this server can be found in my blog - http://blog.ansals.me/2019/04/07/writing-a-simple-web-server-in-python/
The web server contains three parts -
- TCP Server httpserver/tcpserver.py
- HTTP Server httpserver/httpserver.py
- File system handler httpserver/handler.py
A few examples using the above classes can be found in the examples folder. To run the web server from the examples folder, run
python3 examples/http_file_server.py