Skip to content
A toy HTTP server written in Python for understanding how web servers work.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


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 -

The web server contains three parts -

  1. TCP Server httpserver/
  2. HTTP Server httpserver/
  3. File system handler httpserver/

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/

You can’t perform that action at this time.