UNPKG

493 BJavaScriptView Raw
1/**
2 * Created by tanxiangyuan on 2016/6/28.
3 */
4var anyProxy = require("anyproxy");
5
6module.exports.proxyServer = function (opts) {
7 //create cert when you want to use https features
8 //please manually trust this rootCA when it is the first time you run it
9 !anyProxy.isRootCAFileExists() && anyProxy.generateRootCA();
10 new anyProxy.proxyServer(opts);
11};
12
13module.exports.fetchInterface = function (opts) {
14
15};
16
17module.exports.validateData = function (opts) {
18
19};
\No newline at end of file