Mercurial
view benchmark/bun-http-framework-benchmark/src/bun/elysia.ts @ 198:008ca7780c8a
S3 upload got it to work.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sat, 14 Feb 2026 16:18:14 -0800 |
| 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)