Httpserver
A high performance, single threaded, HTTP/1.1 server written in C++23 using BSD kqueue for socket event notification
Install / Use
/learn @RamseyK/HttpserverREADME
HTTP Server
Ramsey Kant https://github.com/RamseyK/httpserver
A high performance, single threaded, HTTP/1.1 server written in C++ to serve as a kqueue socket management and HTTP/1.1 protocol learning tool on BSD systems
Features
- Clean, documented code
- Efficient socket management with kqueue
- Easy to understand HTTP protocol parser (from my ByteBuffer project)
- Tested on FreeBSD and macOS
Compiling
- BSD-based systems with a C++23 compatible compiler are supported. Linux may work when libkqueue is compiled from Github sources and linked, but this is unsupported.
- On FreeBSD, compile with gmake
Usage
$ cat server.config
vhost=10.0.10.86,acme.local
port=8080
diskpath=./htdocs
$ ./httpserver
Primary port: 8080, disk path: ./htdocs
vhost: 10.0.10.86
vhost: acme.local
Server ready. Listening on port 8080...
License
Apache License v2.0. See LICENSE file.
Related Skills
node-connect
337.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.2kCommit, push, and open a PR
