Skip to content

Instantly share code, notes, and snippets.

@ianaya89
Created June 25, 2020 17:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianaya89/e89a38007d82c4c537fa35478c0b8238 to your computer and use it in GitHub Desktop.
Save ianaya89/e89a38007d82c4c537fa35478c0b8238 to your computer and use it in GitHub Desktop.
import { serve } from "https://deno.land/std@0.58.0/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