Finding a nodeJS simple HTTP service is an easy task. Code are old, fare from the current modern coding style. So I try to merge and upgrade diffrent nodeJS proxy, to have a modern one.
- Using Promise
- Using Event
- Implemented in Typescript
The base code comming from: stackoverflow.com
The base code comming from: nodejs-proxy
/*
* Created by Peter Krumins (peter@catonmat.net, @pkrumins on twitter)
* www.catonmat.net -- good coders code, great coders reuse
*
* A simple proxy server written in node.js.
*
* imported from https://catonmat.net/http-proxy-in-nodejs
* see https://github.com/pkrumins/nodejs-proxy
*/