Zeromemer/zerohttp ? reverse-engineered prompt

Reverse engineered prompt

Build me a very basic HTTP server in C that serves files from a local content folder.

I want to be able to put something like index.html inside content, run make, then start the server with ./zerohttp and open it in a browser to see that file at the matching URL. If someone requests a file that exists in content, return it properly, and if it does not exist, show a simple not found response.

Keep it small and straightforward, since this is just a basic project. Use the existing Makefile setup, and make sure it builds cleanly. If you need to check anything about how to handle HTTP requests or sockets, look up current docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab