aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-04-05 19:15:58 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-04-05 19:15:58 -0700
commitddaab5a836a0ec669ceebeb75ff8543178e89dc3 (patch)
tree74e05c01ef02393f0b3856b4db40c2fe74f479ce
parentf97e6d04a73ad8d8c9b629fbe4d7f560732ac519 (diff)
downloadbun-ddaab5a836a0ec669ceebeb75ff8543178e89dc3.tar.gz
bun-ddaab5a836a0ec669ceebeb75ff8543178e89dc3.tar.zst
bun-ddaab5a836a0ec669ceebeb75ff8543178e89dc3.zip
fix example
Diffstat (limited to '')
-rw-r--r--examples/bun/http.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/bun/http.ts b/examples/bun/http.ts
index c528cdd02..4d58f270f 100644
--- a/examples/bun/http.ts
+++ b/examples/bun/http.ts
@@ -23,13 +23,13 @@ Bun.serve({
});
// Start a fast HTTP server from the main file's export
-export default {
- fetch(req) {
- return new Response(
- `This is another way to start a server!
- if the main file export default's an object
- with 'fetch'. Bun automatically calls Bun.serve`
- );
- },
- // so autocomplete & type checking works
-} as Bun.Serve;
+// export default {
+// fetch(req) {
+// return new Response(
+// `This is another way to start a server!
+// if the main file export default's an object
+// with 'fetch'. Bun automatically calls Bun.serve`
+// );
+// },
+// // so autocomplete & type checking works
+// } as Bun.Serve;
en/src/internals/critical-sections.md?h=immutable_resource_proxies&id=bbd47e20ee094d34a65abc41b5ab7f78b8df35d3&follow=1'>critical sections: each task gets its own contextGravatar chrysn 1-1/+1 2019-09-17fix linkchecker warningGravatar Jorge Aparicio 1-1/+1 2019-09-17fix more linksGravatar Jorge Aparicio 8-15/+15 2019-09-17update the CHANGELOGGravatar Jorge Aparicio 2-3/+38 2019-09-17www: fix book placementGravatar Jorge Aparicio 1-4/+3 2019-09-17www: prefix latest docs with the minor versionGravatar Jorge Aparicio 1-3/+6 2019-09-15remove reference from README to CONTRIBUTINGGravatar nils-grepit 1-1/+1 2019-09-15turn git deps into crates.io depsGravatar Jorge Aparicio 2-4/+2 2019-09-15add CONTRIBUTING.md and link to Matrix roomGravatar nils-grepit 2-0/+26 2019-09-15Revert "Fixed install script"Gravatar Emil Fresk 1-2/+2 2019-09-15Fixed install scriptGravatar Emil Fresk 1-2/+2 2019-09-15fix install scriptGravatar Jorge Aparicio 1-1/+1 2019-09-15Book fixGravatar Emil Fresk 1-1/+1 2019-09-150.4: don't cross compile docsGravatar Jorge Aparicio 1-0/+1 2019-09-15One more place updatedGravatar Emil Fresk 1-1/+1 2019-09-15faster doc builds and fix redirect on 0.4Gravatar Jorge Aparicio 2-12/+16 2019-09-15fix redirects and CNAMEGravatar Jorge Aparicio 2-4/+11 2019-09-15Updated links in README for rtfm.rsGravatar Emil Fresk 2-3/+3 2019-09-15link to older docs from the bookGravatar Jorge Aparicio 1-1/+4