Created
May 15, 2020 18:57
-
-
Save fvilante/a763c79e6a01f1036816f2513c380a8d to your computer and use it in GitHub Desktop.
Deno Introduction Many files
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/[email protected]/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