respro
Resource proxy middleware for Connect/Express servers.
Installation/usage
Install using npm
:
$ npm i --save respro
Use this just like any other middleware:
var proxy = ;...app;
Options/configuration
respro
takes 3 arguments:
resourceUrl
- The external URL to the resource we are proxying to.resHeaders
- An object map of response headers to send with the response after the resource is fetched.reqHeaders
- An object map of request headers to send with the request to our resource.
Examples
var proxy = ;...app;...app;