@betterthings/hapi-server-timing

0.0.2 • Public • Published

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)
    // ...
  },
})

Server Timing in DevTools

Authors

Package Sidebar

Install

npm i @betterthings/hapi-server-timing

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

3.95 kB

Total Files

4

Last publish

Collaborators

  • laooola
  • lusbuab