Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 24, 2020 12:51
Embed
What would you like to do?
import { serve } from "https://deno.land/std@0.57.0/http/server.ts";
const server = serve({ port: 5000 });
console.log("http://localhost:5000/");
for await (const request of server) {  
request.respond({ body: "Hello World\n" });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment