If you are just looking for a simple proof of concept, go to laobubu's original gitter
This is a very simple HTTP server for Unix, written entirely in C.
This is a clone of the PICO project. It's very easy to use - simply add your routes into main.c
- include header
httpd.h
- write your route method, handling requests.
- call
serve_forever("12913")
to start serving on port 12913
See main.c
, an interesting example.
To log stuff, use fprintf(stderr, "message");
View httpd.h
for more information
based on http://blog.abhijeetr.com/2010/04/very-simple-http-server-writen-in-c.html