0.0.1 • Published 4 years ago
fomex-response-time v0.0.1
Fomex Response Time
X-Response-Time plugin for fomex
Installation
yarn add fomex-response-time
Usage
import { baseWebRouter } from 'fomex';
import { PluginResponseTime } from 'fomex-cors';
export webRouter = baseWebRouter.global(new PluginResponseTime());
If you need response high resolution in nano time, set hrtime option to true:
new PluginResponseTime()({ hrtime: true });
Sample response header with hrtime = false (default):
X-Response-Time: 153ms
Sample response header with hrtime = true:
X-Response-Time: 153.123581ms
0.0.1
4 years ago