This kind of reminds me of the venerable tool "netcat." Through such simplicity, elegance and power emerge.<p>If you've used netcat before you know how useful it can be, but also be very careful ever exposing it to the internet (or even your LAN if there could be malicious users connected).
Hmm looks similar to stdinho <a href="https://github.com/ostrolucky/stdinho" rel="nofollow">https://github.com/ostrolucky/stdinho</a>. Difference is that script-httpd accepts incoming http data and pipes it to process, returning result. Stdinho does not accept incoming http data, it just takes whatever stdout process returns right as process starts. This allows it to not wait for http connection and start buffering before that.
Great.<p>Can we use pipes of commands for processing?<p>Is it possible to avoid creating processes along the way - to have a sort of precompiled service in memory, waiting for requests?