https-agent:具有透明代理支持的 Node 的 HTTPS 代理

时间:2021-07-07 16:41:17
【文件属性】:
文件名称:https-agent:具有透明代理支持的 Node 的 HTTPS 代理
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-07 16:41:17
JavaScript https代理 具有透明代理支持的 Node 的 HTTPS 代理 创建一个使用https_proxy环境变量自动处理代理隧道的。 然后,您可以将代理插入您选择的 HTTP 客户端,并使用 SSL 客户端身份验证发出请求。 安装 npm install https-agent 用法 var httpsAgent = require ( 'https-agent' ) ; var fs = require ( 'fs' ) ; var agent = httpsAgent ( { pfx : fs . readFileSync ( '/path/to/client.p12' ) , passphrase : 'client' } ) ; 创建代理时支持所有标准。 对 PKCS12 格式的cert使用pfx和passphrase选项,或对单独的证书和密钥文件使用cert和key
【文件预览】:
https-agent-master
----.gitignore(20B)
----package.json(646B)
----.travis.yml(48B)
----index.js(607B)
----README.md(2KB)
----.npmignore(8B)
----test()
--------index.js(283B)

网友评论