Created
June 24, 2020 12:51
-
-
Save velotiotech/a5022a1763ed5985c5e5692dc7f12d95 to your computer and use it in GitHub Desktop.
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.57.0/http/server.ts"; | |
const server = serve({ port: 5000 }); | |
console.log("http://localhost:5000/"); | |
for await (const request of server) { | |
request.respond({ body: "Hello World\n" }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment