Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 24, 2020 12:51
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 velotiotech/a5022a1763ed5985c5e5692dc7f12d95 to your computer and use it in GitHub Desktop.
Save velotiotech/a5022a1763ed5985c5e5692dc7f12d95 to your computer and use it in GitHub Desktop.
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