UNPKG

@elysiajs/server-timing

Version:

Elysia plugin to integrate Server-Timing

21 lines (16 loc) 564 B
# @elysia/server-timing [Elysia](https://github.com/elysiajs/elysia) Elysia plugin to integrate [Server-Timing](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing) ## Installation ```bash bun add @elysia/server-timing ``` ## Example ```typescript twoslash import { Elysia } from 'elysia' import { serverTiming } from '@elysiajs/server-timing' new Elysia() .use(serverTiming()) .get('/', () => 'hello') .listen(3000) ``` Please refers to the [documentation](https://elysiajs.com/plugins/server-timing) on how to use the package