Skip to content

Instantly share code, notes, and snippets.

@IshamMohamed
Last active May 27, 2020 05:42
Embed
What would you like to do?
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