summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/http/server.ts8
-rw-r--r--std/http/server_test.ts2
-rw-r--r--std/ws/mod.ts2
3 files changed, 6 insertions, 6 deletions
diff --git a/std/http/server.ts b/std/http/server.ts
index 4fbd6f9c9..79d83129d 100644
--- a/std/http/server.ts
+++ b/std/http/server.ts
@@ -13,7 +13,7 @@ import {
import Listener = Deno.Listener;
import Conn = Deno.Conn;
import Reader = Deno.Reader;
-const { listen, listenTLS } = Deno;
+const { listen, listenTls } = Deno;
export class ServerRequest {
url!: string;
@@ -286,7 +286,7 @@ export async function listenAndServe(
}
/** Options for creating an HTTPS server. */
-export type HTTPSOptions = Omit<Deno.ListenTLSOptions, "transport">;
+export type HTTPSOptions = Omit<Deno.ListenTlsOptions, "transport">;
/**
* Create an HTTPS server with given options
@@ -306,11 +306,11 @@ export type HTTPSOptions = Omit<Deno.ListenTLSOptions, "transport">;
* @return Async iterable server instance for incoming requests
*/
export function serveTLS(options: HTTPSOptions): Server {
- const tlsOptions: Deno.ListenTLSOptions = {
+ const tlsOptions: Deno.ListenTlsOptions = {
...options,
transport: "tcp",
};
- const listener = listenTLS(tlsOptions);
+ const listener = listenTls(tlsOptions);
return new Server(listener);
}
diff --git a/std/http/server_test.ts b/std/http/server_test.ts
index 12849d6e7..d08c352c2 100644
--- a/std/http/server_test.ts
+++ b/std/http/server_test.ts
@@ -423,7 +423,7 @@ test({
"server must be started"
);
// Requests to the server and immediately closes the connection
- const conn = await Deno.connectTLS({
+ const conn = await Deno.connectTls({
hostname: "localhost",
port: 4503,
certFile: "http/testdata/tls/RootCA.pem",
diff --git a/std/ws/mod.ts b/std/ws/mod.ts
index bb377ad6e..87084312f 100644
--- a/std/ws/mod.ts
+++ b/std/ws/mod.ts
@@ -527,7 +527,7 @@ export async function connectWebSocket(
conn = await Deno.connect({ hostname, port });
} else if (url.protocol === "https:" || url.protocol === "wss:") {
const port = parseInt(url.port || "443");
- conn = await Deno.connectTLS({ hostname, port });
+ conn = await Deno.connectTls({ hostname, port });
} else {
throw new Error("ws: unsupported protocol: " + url.protocol);
}