服务响应时间
在响应header中注入服务响应时间,报头插入数据格式:x-response-time: 123ms
安装
open in new window
pnpm add @aomex/response-time
使用
import { createResponseTime } from '@aomex/response-time';
app.mount(createResponseTime());
参数
hrtime
类型:boolean | undefined
默认:true
是否需要包含毫秒值