节点- ưμ㼯a
添加了 HTTP PROXY, HTTPS PROXY, NO PROXY 支持的节点- fatch 库, 与已贬值的请求相同. js 库 .
使用量
要安装此库, 请输入以下内容 .
npm install --save @formio/node-fetch-http-proxy
然后可以使用这个库来代替这样的节点牵引.
const fetch = require('@formio/node-fetch-http-proxy');
fetch('https://examples.form.io/example').then((resp) => resp.json()).then((form) => {
console.log(form);
});;
HTTP PROXY, HTTPS PROXY, 和 NO PROXY
这些变量与文件相同@ https://github.com/request/request#控制-代用-行为-使用-环境-可变性