summaryrefslogtreecommitdiff
path: root/http_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-12-06 17:19:12 -0500
committerRyan Dahl <ry@tinyclouds.org>2018-12-06 17:19:34 -0500
commit16aedf68ea056c312edd8f857a57c143c4f21f50 (patch)
treee944e63165c6dc3a85d497680044268475fe7302 /http_test.ts
parentc5871cb996d42eec2453b86003f305ec62ee3e46 (diff)
Add http_bench.ts
Original: https://github.com/denoland/deno_std/commit/82ceb596f3d1f75b1711117767e26cfac8b64945
Diffstat (limited to 'http_test.ts')
-rw-r--r--http_test.ts22
1 files changed, 0 insertions, 22 deletions
diff --git a/http_test.ts b/http_test.ts
deleted file mode 100644
index b0007a892..000000000
--- a/http_test.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import { serve } from "./http.ts";
-//import { test } from "https://deno.land/x/testing/testing.ts";
-
-const addr = "0.0.0.0:8000";
-const s = serve(addr);
-console.log(`listening on http://${addr}/`);
-
-const body = new TextEncoder().encode("Hello World\n");
-
-async function main() {
- for await (const req of s) {
- await req.respond({ status: 200, body });
- }
-}
-
-main();
-
-/*
-test(function basic() {
- console.log("ok");
-});
- */