The question is fairly simple. I want to use a Node.js server as a proxy to log, authenticate, and forward HTTP queries to a backend HTTP server (PUT, GET, and DELETE requests).
What library should I use for that purpose? I'm afraid I can't find one.
I would recommend adding resp.setEncoding('utf8'); (or whatever encoding you're using) to get data as utf8 strings. If I have understood right, otherwise you'll get Buffer objects and might end up having trouble with multi-byte characters if a multi-byte character is split to two chunks. (Just debugged a related problem for a while)
node-http-proxy will support a proxy inside your node.js web server via RoutingProxy (see the example called Proxy requests within another http server).
node-http-proxy is a great solution as was suggested by @hross above. If you're not deadset on using node, we use NGINX to do the same thing. It works really well with node. We use it for example to process SSL requests before forwarding them to node. It can also handle cacheing and forwarding routes. Yay!