mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
More docs on fetch
This commit is contained in:
@@ -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!");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user