A lightweight Python HTTP server built from scratch.
Why this project
Built to understand what happens behind
- python -m http.server
- what exactly does a http server do?
and to understand how web servers work at a fundamental level. This project explores request parsing, socket handling, and serving static content without relying on frameworks. Also, i added some js & colors because it didn’t have RGB (idk why). It’s also available on testpypi. Checkout the repo for installation and usage.
Features
- Minimal HTTP server using Python sockets
- Handles GET, HEAD requests
- Serves static files
Source