huv
Table of Contents
A small C HTTP/1.1 server library built on libuv and llhttp, with optional TLS via mbedTLS and multi-worker scaling via SO_REUSEPORT + fork().
Features#
- Non-blocking — single-threaded event loop per worker
- Middleware + routing — Express-style
use()+get/post/...with:paramcaptures and405 + Allowfor unregistered methods on known paths - HTTP/HTTPS on one process — plain HTTP, TLS, or both in the same worker sharing one router
- Multi-worker — set
workers=Nto fork N processes that share the listen port, with the kernel load-balancing incoming connections
Tech Stack#
- C — core implementation
- libuv — non-blocking event loop
- llhttp — HTTP parsing (the parser behind Node.js)
- mbedTLS — optional TLS support
- CMake — build system