Minimal single threaded web server?
Is there a library or code samples to implement a minimal, single threaded server for accepting and responding to HTTP GET/POST requests?
What I want to do is to accept a GET or POST request, run my own code which calculates something and send that back to the client as a response. The server only needs to accept and process one request at a time (the HTTP protocol is just used to make the interaction between a perl-written client and the Java algorithm simpler).
I wonder what the minimum-effort solution to this is.