Ultra-low-footprint, high-performance C HTTP server designed to serve static websites inside a minimal 33 KB Docker FROM scratch container.
- Zero-Copy I/O (
sendfile): Streams static files straight from the Linux kernel page cache to TCP sockets. - HTTP Keep-Alive: Reuses TCP connections for asset fetching.
- HTTP Caching & ETag: Sends
Cache-Controland responds with304 Not Modifiedfor cached assets. - Single-Threaded Epoll Event Loop: Non-blocking
epollarchitecture with sub-200 KB RAM consumption. - Minimal Docker Image: Static binary compilation (
-static -Os -flto -s) packaged inside aFROM scratchDocker image (~33 KB container footprint).
docker compose up --build -dVisit: http://localhost:8080
make
./data_httpd -c server.conf