UNPKG

jsev

Version:

Environment for building Web API's.

16 lines 410 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = () => ({ func: async (ctx, next) => { const start = Date.now(); try { await next(); } finally { const ms = Date.now() - start; ctx.set("X-Response-Time", `${ms}ms`); } }, rank: 2, }); //# sourceMappingURL=requestProfiler.js.map