Mercurial
view benchmark/bun-http-framework-benchmark/src/bun/elysia.ts @ 267:a78f5986011f
discover bundled production runtimes
Locate Bazel-packaged Copilot and Python binaries by stable suffix instead of hardcoding an external repository prefix.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 07 Aug 2026 12:58:55 -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)