node-httpmocker:用于 nodejs 的可配置 HTTPs 存根工具

时间:2021-06-22 16:35:30
【文件属性】:
文件名称:node-httpmocker:用于 nodejs 的可配置 HTTPs 存根工具
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-22 16:35:30
JavaScript HTTP 模拟程序 httpmocker是一个测试工具,用于httpmocker您无法在测试文件中访问的任何请求。 特征 不要更改 lib 目录中的任何源代码 可配置(易于过滤请求) 为什么? 有时,您可能会使用这些第三方模块,例如node-aws 、 node-semantics3它们控制程序如何通过 HTTP/HTTPS 调用请求,因此如果您想准确地过滤这些请求,那就太难了。 想象一下以下 aws 代码: // create the AWS.Request object var request = new AWS . EC2 ( ) . describeInstances ( ) ; // register a callback to report on the data request . on ( 'success' , function ( resp ) { con
【文件预览】:
node-httpmocker-master
----test.js(5KB)
----.travis.yml(51B)
----README.md(3KB)
----.gitignore(33B)
----index.js(5KB)
----package.json(680B)

网友评论