diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-24 23:29:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-24 23:29:14 +0200 |
commit | 6a37e4426e686028c38d5e915d91e587c5966804 (patch) | |
tree | c1bedaeb2e6137fc023b6e125a56d4cba848add2 /std/http/server.ts | |
parent | 6efdacddf30b5247b66596a44226687ff21a8f80 (diff) |
BREAKING CHANGE: rename TLS APIs to camel case (#4888)
This commit renames all APIs containing "TLS" to use camel case
(connectTLS -> connectTls, etc.)
Diffstat (limited to 'std/http/server.ts')
-rw-r--r-- | std/http/server.ts | 8 |
1 files changed, 4 insertions, 4 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); } |