mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
feat: stabilize Deno.connectTls options and Deno.TlsConn.handshake (#21889)
This commit is contained in:
parent
c2127a86cb
commit
f3bb0a1a0e
3 changed files with 11 additions and 73 deletions
13
ext/net/lib.deno_net.d.ts
vendored
13
ext/net/lib.deno_net.d.ts
vendored
|
@ -84,8 +84,13 @@ declare namespace Deno {
|
|||
}
|
||||
|
||||
/** @category Network */
|
||||
// deno-lint-ignore no-empty-interface
|
||||
export interface TlsHandshakeInfo {}
|
||||
export interface TlsHandshakeInfo {
|
||||
/**
|
||||
* Contains the ALPN protocol selected during negotiation with the server.
|
||||
* If no ALPN protocol selected, returns `null`.
|
||||
*/
|
||||
alpnProtocol: string | null;
|
||||
}
|
||||
|
||||
/** @category Network */
|
||||
export interface TlsConn extends Conn {
|
||||
|
@ -247,6 +252,10 @@ declare namespace Deno {
|
|||
* TLS handshake.
|
||||
*/
|
||||
alpnProtocols?: string[];
|
||||
/** PEM formatted client certificate chain. */
|
||||
certChain?: string;
|
||||
/** PEM formatted (RSA or PKCS8) private key of client certificate. */
|
||||
privateKey?: string;
|
||||
}
|
||||
|
||||
/** Establishes a secure connection over TLS (transport layer security) using
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue