Bug #2

Title Compiled configuration project
Author Amelia Zabardast Ziabari
Created Tue 26 May 20:02:50 CEST 2026
State open

What if you could fully script each request, distribute them between threads, include dynamic pages within the web-server itself, and do all of this with even less performance overhead than a traditional configuration file?

I'm thinking of re-factoring the code to make libhttpd more self-contained, and essentially using something like libtcc or libgccjit (or even the system compiler, with some build system changes) to allow the user to provide a "configuration" that is in reality their own custom web-server, complete with ready-made snippets to do things like reverse proxies, bot filtering, request rewriting, you name it.

With this, you don't need an external service like HAProxy to mess with the requests for you. It can all just be handled in one very fast binary, with much of the conditional logic already resolved at compile-time.