@betterthings/hapi-server-timing
v0.0.2
Published
server-timing support for hapi
Downloads
7
Readme
HAPI Server Timing
Adds support for the Server-Timing
header in hapi
.
const server = new hapi.Server({ .. })
server.register(require('@betterthings/hapi-server-timing'))
server.route({
method: 'GET',
path: '/timing',
handler: request => {
// ...
request.addTiming('id', 'ID Description', 42)
// ...
},
})
Authors
- Florian Hämmerle (@lusbuab) - Better Things Digital
- Patrick Schedler - Better Things Digital