swproxy
work in progress
How to use the RewriteMod
// register the modproxy; // define a new rewrite ruleproxy; // change the domain for every request that ends with /some/pathproxy;
proxy.rewriteRule(srcUrl, destUrl, modifiers);
srcUrl:
- the rule will only executed for requests, that matches this regular expression.
destUrl:
- the request Url will be modified, so the that the destUrl will be used, to make the final request.
modifiers:
- modifiers are an JavaScript Object "{}"
- They can be swproxy specific like 'stopPropagation'. See (doc)[https://github.com/alexanderbartels/swproxy#modifier] for more information.
- ...
License
MIT © Alexander Bartels