Last active
May 27, 2020 05:42
-
-
Save IshamMohamed/a138c227d33fe6bf8e00ac0f898ac6cd to your computer and use it in GitHub Desktop.
quickdenoserver.ts
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/http/server.ts"; | |
const s = serve({ port: 80 }); | |
console.log("http://localhost:80/"); | |
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