Created
June 2, 2020 12:39
-
-
Save jbergant/3a827e8fca1790ba54a4bb21f4dad612 to your computer and use it in GitHub Desktop.
deno server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { serve } from "https://deno.land/std/http/server.ts"; | |
| const s = serve({ port: 8000 }); | |
| console.log("http://localhost:8000/"); | |
| for await (const req of s) { | |
| req.respond({ body: "Hello World\n" }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment