19 ms·
https://github.com/tom-seddon/yhs https://github.com/tom-seddon/yhs - embeddable no-dependency single-threaded HTTP server (debug use only! not for production!)
by to3m 12y ago
https://github.com/tom-seddon/yhs https://github.com/tom-seddon/yhs - embeddable no-dependency single-threaded HTTP server (debug use only! not for production!) with WebSockets support and a simple API. Written in C. I wrote this for use in an iOS project I was working on, intending to provide a browser-driven system for twiddling parameters at runtime. In the end, though, everybody preferred doing their tweaking on the device itself using some Cocoa Touch nonsense I cobbled together in an afternoon. So I saved myself some JavaScript coding and abandoned the web idea.
There's a few obvious things that it doesn't support (e.g., chunked encoding...), that make it hard to recommend as a general purpose solution. But for serving files and debug data it's OK, and it does promise never to call your callback on another thread.