More docs on fetch

This commit is contained in:
Jarred Sumner
2025-01-28 15:26:55 -08:00
parent 33fefdda6b
commit ea301d7235
2 changed files with 157 additions and 2 deletions

View File

@@ -612,8 +612,8 @@ const server = Bun.serve({
// Set 60 second timeout for this request
server.timeout(req, 60);
// Long operation
await someSlowOperation();
// If they take longer than 60 seconds to send the body, the request will be aborted
await req.text();
return new Response("Done!");
},