Mercurial
view benchmark/bun-http-framework-benchmark/src/bun/elysia.ts @ 247:70f2a3dafc1c
[build] Bundle offline Tectonic runtime
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 03 Aug 2026 20:20:06 -0700 |
| parents | a8976a008a9d |
| children |
line wrap: on
line source
import { Elysia, t } from 'elysia' const app = new Elysia() .get('/', 'Hi') .get('/id/:id', (c) => { c.set.headers['x-powered-by'] = 'benchmark' return `${c.params.id} ${c.query.name}` }) .post('/json', (c) => c.body, { parse: 'json' }) .listen(3000)