Skip to content

Instantly share code, notes, and snippets.

@IshamMohamed
Last active May 27, 2020 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IshamMohamed/a138c227d33fe6bf8e00ac0f898ac6cd to your computer and use it in GitHub Desktop.
Save IshamMohamed/a138c227d33fe6bf8e00ac0f898ac6cd to your computer and use it in GitHub Desktop.
quickdenoserver.ts
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