I'm writing a node.js proxy server, serving requests to an API on different domain.
I'd like to use node-http-proxy and I have already found a way to modify response headers.
But is there a way to modify request data on condition (i.e. adding API key) and taking into account that there might be different methods request - GET
, POST
, UPDATE
, DELETE
?
Or maybe I'm messing up the purpose of node-http-proxy and there is something more suitable to my purpose?