mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 09:39:08 -05:00
docs(cli/dts): fix Deno.startTls
example (#10657)
This commit is contained in:
parent
5151afa123
commit
75d547809f
1 changed files with 1 additions and 1 deletions
2
cli/dts/lib.deno.unstable.d.ts
vendored
2
cli/dts/lib.deno.unstable.d.ts
vendored
|
@ -982,7 +982,7 @@ declare namespace Deno {
|
|||
*
|
||||
* ```ts
|
||||
* const conn = await Deno.connect({ port: 80, hostname: "127.0.0.1" });
|
||||
* const tlsConn = await Deno.startTls(conn, { certFile: "./certs/my_custom_root_CA.pem", hostname: "127.0.0.1", port: 80 });
|
||||
* const tlsConn = await Deno.startTls(conn, { certFile: "./certs/my_custom_root_CA.pem", hostname: "localhost" });
|
||||
* ```
|
||||
*
|
||||
* Requires `allow-net` permission.
|
||||
|
|
Loading…
Reference in a new issue