A minimalist, high-performance C11 HTTP/1.1 server using epoll and sendfile.
- Fast: Non-blocking edge-triggered epoll event loop.
- Efficient: Zero-copy file delivery via
sendfile. - Live-Reload: Built-in
inotifybrowser auto-refresh. - Safe: Fuzz-tested parser and path sanitization.
- Zero Dependencies: Pure C11/Linux code.
make release
./build_release/chttp --port 8080 --root ./public_html --live-reload--port <port>: Port to listen on (default: 8080)--root <path>: Web root directory (default: ./www)--live-reload: Enable auto-refresh on file changes--max-conn <n>: Max concurrent connections (default: 10000)
MIT