Build Status](https://travis-ci.org/x-component/x-middleware-proxy)
- ./index.js
- ./location.js
- ./map-cookie.js
- ./map-header.js
- ./map.js
- ./proxy-forward.js
- ./proxy-redirect.js
- ./proxy-status.js
- ./proxy.js
- ./relativize.js
- ./relativize2.js
- ./test/config.js
location url reverse rewrite for the location header this uses request.proxy which contains the proxy target config
reverse rewrite example input location url = http://cmsserver:port/prefix/foo/bar;session=XYZ?f=1&b=2 result url shoud be = http://myname:myport/mount/foo/bar;session=ABC?f=1&b=2
this middleware maps the Cookie header for requests and the Set-Cookie header for response the mapping is defined by options
level:'debug'
this middleware prepares the internal proxy request and forwards the intenral proxy response
Prepares the inner proxy request by creating an object with all related reuqest data.
The existing body of the outer request will be added to the proxy request.
Forwards the existing inner response, if it is not of content-type html or text. Otherwise statusCode and body of inner response will be stored in the outer response for further transformation.
wrap the original redirect to accept relative urls and automatically produce absolute urls with http server port / complete path
Returns an function which fires a inner request and puts the data (statusCode','headers','body) from corresponding response to the outer response.
adapt internal absolute urls to relative urls
adapt internal absolute urls to relative urls