utilities-forwarder
v1.1.1
Published
Http/Https request forwarder.
Downloads
2
Readme
node.devutility.forwarder
Install
npm install utilities-forwarder
Usage
Version 1.1.x
// Import default module
import HttpProxyHelper from "utilities-forwarder";
let httpProxyHelper = new HttpProxyHelper(options);
// Import named module
import { HttpProxyHelper } from "utilities-forwarder"
let httpProxyHelper = new HttpProxyHelper(options);
Version 1.0.x
const forwarder = require("utilities-forwarder")(options);
Configuration
Value of
options
: https://github.com/nodejitsu/node-http-proxy
debug
: The forwarder will print more detailed log while enable this item;proxyOptions
: Configuration object forhttp-proxy
.
Change list
Version 1.1.1
- Add item in configuration object:
debug
;
- Add item in configuration object:
- Remove support for Web Socket forward and remove related methods
proxyReqWs
andopenWs
;
- Remove support for Web Socket forward and remove related methods
- Optmize log with Logger from module
utilities-common
.
- Optmize log with Logger from module
Version 1.1.0
- Upgrade javascript to ES 6;
- Add methods in configuration object:
proxyReq
,proxyRes
,close
,error
,proxyReqWs
,openWs
.
- Add methods in configuration object: