Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

data_httpd

Ultra-low-footprint, high-performance C HTTP server designed to serve static websites inside a minimal 33 KB Docker FROM scratch container.

Features

  • 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-Control and responds with 304 Not Modified for cached assets.
  • Single-Threaded Epoll Event Loop: Non-blocking epoll architecture with sub-200 KB RAM consumption.
  • Minimal Docker Image: Static binary compilation (-static -Os -flto -s) packaged inside a FROM scratch Docker image (~33 KB container footprint).

Quick Start (Docker Compose)

docker compose up --build -d

Visit: http://localhost:8080

Build Locally

make
./data_httpd -c server.conf

About

Simple HTTP server in C with Docker support

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages