summaryrefslogtreecommitdiff
path: root/std/http/testdata/simple_https_server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/http/testdata/simple_https_server.ts')
-rw-r--r--std/http/testdata/simple_https_server.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/std/http/testdata/simple_https_server.ts b/std/http/testdata/simple_https_server.ts
deleted file mode 100644
index 84dfb39ab..000000000
--- a/std/http/testdata/simple_https_server.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-// This is an example of a https server
-import { serveTLS } from "../server.ts";
-
-const tlsOptions = {
- hostname: "localhost",
- port: 4503,
- certFile: "./testdata/tls/localhost.crt",
- keyFile: "./testdata/tls/localhost.key",
-};
-const s = serveTLS(tlsOptions);
-console.log(
- `Simple HTTPS server listening on ${tlsOptions.hostname}:${tlsOptions.port}`,
-);
-const body = new TextEncoder().encode("Hello HTTPS");
-for await (const req of s) {
- req.respond({ body });
-}