Supports: CGI, Reverse Proxy.
Single threaded using I/O multiplexing (select).
Show HN: A little web server in C
github.com
1–10 of 121 posts
Supports: CGI, Reverse Proxy.
Single threaded using I/O multiplexing (select).
Show HN: A little web server in C
github.com
Curious to know how it compares to micro_httpd [1] which is about 200 lines of C. Or others like thttpd and tiny_httpd.
This is exactly the type of web server I'm looking for my project.
[flagged]
All sorts of reason why someone might want to write one of these. There's even a bunch of free tools to help test it (and who doesn't like free tests!).
Until you put fingers to keyboard, you just don't know, it's all book learnin'.
[flagged]
I dunno. I haven't written a multiplexing I/O server. I haven't written a CGI forking process. I haven't written a reverse proxy handler. Heck, I haven't written C in years. All sorts of reason why someone might want to write one of these. There's even a bunch of free tools to help test it (and who doesn't like free tests!). Until you put fingers to keyboard, you just don't know, it's all book learnin'.
https://github.com/robdelacruz/lkwebserver/blob/main/lkstrin...
It's fun to write this (and read others' versions) the first 3 or 4 times, but it gets old quickly.