1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00

Add 'deno/' from commit 'eb9915af3e4118edd5408e5a17eebd0fcd07ae9f'

git-subtree-dir: deno
git-subtree-mainline: 30663abe62
git-subtree-split: eb9915af3e
This commit is contained in:
Nebel 2020-07-21 00:43:30 +09:00
commit b755568571
2 changed files with 5650 additions and 0 deletions

5640
deno/server.bundle.js Normal file

File diff suppressed because it is too large Load diff

10
deno/server.ts Normal file
View file

@ -0,0 +1,10 @@
import { serve } from "https://deno.land/std@0.56.0/http/server.ts";
async function main() {
const port = 8000;
console.log(`http://localhost:${port}/`);
for await (const req of serve({ port })) {
req.respond({ body: "Hello World\n" });
}
}
main();