Skip to content

pearofducks/fastify-request-timing

Repository files navigation

fastify-request-timing

install

yarn add fastify-request-timing

use

import Fastify from 'fastify'
import requestTiming from 'fastify-request-timing'

const server = fastify()
server.register(requestTiming)
// or to dynamically import
server.register(await import('fastify-request-timing'))

About

adds an x-response-time header containing the time to complete the request

Resources

License

Stars

Watchers

Forks

Packages

No packages published