feat: Add Deno.dialTLS()

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
Jonathon Orsi 2019-09-23 14:40:38 -04:00 committed by Ryan Dahl
parent 4ff04ad96f
commit 045e74bb39
12 changed files with 206 additions and 22 deletions

View file

@ -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;