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:
commit
b755568571
2 changed files with 5650 additions and 0 deletions
5640
deno/server.bundle.js
Normal file
5640
deno/server.bundle.js
Normal file
File diff suppressed because it is too large
Load diff
10
deno/server.ts
Normal file
10
deno/server.ts
Normal 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();
|
Loading…
Add table
Reference in a new issue