Skip to content

Instantly share code, notes, and snippets.

@uqmessias
Created January 28, 2020 14:12
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 uqmessias/5f0b653fba297581bda4192c43005721 to your computer and use it in GitHub Desktop.
Save uqmessias/5f0b653fba297581bda4192c43005721 to your computer and use it in GitHub Desktop.
import { serve } from "https://deno.land/std@v0.30.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