fastify-request-timing

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

Usage no npm install needed!

<script type="module">
  import fastifyRequestTiming from 'https://cdn.skypack.dev/fastify-request-timing';
</script>

README

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'))