From 27a217e8740d2d413b13ff256259e67a4fdcecd6 Mon Sep 17 00:00:00 2001 From: MikeGarciaAGM Date: Sun, 31 May 2026 08:55:55 -0500 Subject: [PATCH] feat(blog): add post from issue #271 --- posts.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/posts.json b/posts.json index 9ad7a6f..54ee054 100644 --- a/posts.json +++ b/posts.json @@ -571,5 +571,18 @@ "tags": [], "date": "2026-04-04", "order": 52 + }, + { + "id": "e51df60e", + "title": "Bun.serve et le futur HTTP TypeScript", + "url": "https://github.com/khalilbenaz/khalilbenaz.github.io/issues/271", + "excerpt": "## Bun.serve — l'intégré Bun runtime intègre `Bun.serve()` : serveur HTTP natif, performant. ```ts Bun.serve({ port: 3000, fetch(req) { const url = new URL(req.url); if (url.pathname === \"/\") return new Response(\"Hello\"); if (url.pathname === \"/api/users\") return Response.json([{ id: 1 }]); return new Response(\"Not Found\", { status: 404 }); }, }); ``` Pas d'imports externes. API standard Web (Request/Response). ## Pe", + "tags": [ + "BLOG", + "BUN", + "JAVASCRIPT" + ], + "date": "2026-05-23", + "order": 53 } -] \ No newline at end of file +]