mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
feat: Add Deno.dialTLS()
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
4ff04ad96f
commit
045e74bb39
12 changed files with 206 additions and 22 deletions
11
js/lib.deno_runtime.d.ts
vendored
11
js/lib.deno_runtime.d.ts
vendored
|
@ -999,8 +999,17 @@ declare namespace Deno {
|
|||
*/
|
||||
export function dial(options: DialOptions): Promise<Conn>;
|
||||
|
||||
// @url js/metrics.d.ts
|
||||
export interface DialTLSOptions {
|
||||
port: number;
|
||||
hostname?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* dialTLS establishes a secure connection over TLS (transport layer security).
|
||||
*/
|
||||
export function dialTLS(options: DialTLSOptions): Promise<Conn>;
|
||||
|
||||
// @url js/metrics.d.ts
|
||||
export interface Metrics {
|
||||
opsDispatched: number;
|
||||
opsCompleted: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue