@elysiajs/server-timing
Version:
Elysia plugin to integrate Server-Timing
21 lines (16 loc) • 564 B
Markdown
[](https://github.com/elysiajs/elysia) Elysia plugin to integrate [Server-Timing](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing)
```bash
bun add @elysia/server-timing
```
```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