文件名称:http-timer:HTTP HTTP请求的性能计时
文件大小:8KB
文件格式:ZIP
更新时间:2024-02-24 13:36:04
nodejs http https timer timings
http计时器 HTTP请求的时间 受启发。 安装 NPM: npm install @szmarczak/http-timer 纱: yarn add @szmarczak/http-timer 用法 const https = require ( 'https' ) ; const timer = require ( '@szmarczak/http-timer' ) ; const request = https . get ( 'https://httpbin.org/anything' ) ; timer ( request ) ; request . once ( 'res
【文件预览】:
http-timer-master
----.travis.yml(87B)
----package.json(1KB)
----tests()
--------test.ts(9KB)
----LICENSE(1KB)
----tsconfig.json(162B)
----.gitignore(48B)
----.npmrc(19B)
----README.md(3KB)
----.editorconfig(175B)
----source()
--------index.ts(4KB)