Last active
June 2, 2020 21:02
-
-
Save khaosdoctor/cd2bbb28e682feb8d20a7aba47fc1e17 to your computer and use it in GitHub Desktop.
Deno Hello World Server
This file contains 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@0.54.0/http/server.ts" | |
const handler = serve({ port: 80 }) | |
console.log("Serving at 80") | |
for await (const req of handler) { | |
req.respond({ body: "Hello World!\n" }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment