diff options
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/http.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/api/http.md b/docs/api/http.md index cd20a9931..3f476feb2 100644 --- a/docs/api/http.md +++ b/docs/api/http.md @@ -212,9 +212,7 @@ $ bun --hot server.ts To stream a file, return a `Response` object with a `BunFile` object as the body. ```ts -import { serve, file } from "bun"; - -serve({ +Bun.serve({ fetch(req) { return new Response(Bun.file("./hello.txt")); }, |