Express proxy middleware to forward request to another host and pass response back
Install
$ npm install express-http-proxy --save
Usage
var proxy = ; var app = ; app;
If you only want to proxy get request
app;
You can also intercept the response before sending it back to the client, or change the request options before it is sent to the target:
app;
Release Notes
Release | Notes |
---|---|
0.4.0 | Signature of intercept callback changed from function(data, req, res, callback) to function(rsp, data, req, res, callback) where rsp is the original response from the target |
Licence
MIT