Mercurial
view benchmark/bun-http-framework-benchmark/src/deno/deno-web-standard.ts @ 279:b3b547563ec7
Add Google connector service and agent wiki
Implement the C/Seobeo Google Drive and Gmail connector with encrypted OAuth storage, Zenbu authentication, browser testing, AI tool discovery, chunked HTTP decoding, and Bazel coverage. Consolidate repository guidance into progressive wiki documentation and enforce arena-first allocation for new first-party C code.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 84c338fd-0939-4bb3-b7f3-1062eb213e5d
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 17 Aug 2026 22:22:36 -0700 |
| parents | a8976a008a9d |
| children |
line wrap: on
line source
// @ts-nocheck Deno.serve({ port: 3000 }, async (request) => { const url = new URL(request.url) switch (request.method) { case 'GET': switch (url.pathname) { case '/': return new Response('Hi') } if (url.pathname.startsWith('/id/')) { const [id, rest] = url.pathname.slice(4).split('/') if (!rest) return new Response( `${id} ${url.searchParams.get('name')}`, { headers: { 'x-powered-by': 'benchmark' } } ) } return new Response('Not Found', { status: 404 }) case 'POST': switch (url.pathname) { case '/json': return Response.json(await request.json()) default: return new Response('Not Found', { status: 404 }) } default: return new Response('Not Found', { status: 404 }) } })