Hello, Deno

Home   »   Hello, Deno

import { serve } from "https://deno.land/[email protected]/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" });
}

Leave a Reply

Your email address will not be published. Required fields are marked *