Skip to content

Instantly share code, notes, and snippets.

@ianaya89

ianaya89/deno.js

Created Jun 25, 2020
Embed
What would you like to do?
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