[node] Add missing alpnProtocol and createConnection

This commit is contained in:
Gerhard Stoebich
2018-11-28 21:32:20 +01:00
parent 23aa4433cd
commit eba6a5aa15
+8
View File
@@ -6258,6 +6258,13 @@ declare module "tls" {
* May be used to distinguish TLS sockets from regular ones.
*/
encrypted: boolean;
/**
* String containing the selected ALPN protocol.
* When ALPN has no selected protocol, tlsSocket.alpnProtocol equals false.
*/
alpnProtocol?: string;
/**
* Returns an object representing the cipher name and the SSL/TLS protocol version of the current connection.
* @returns Returns an object representing the cipher name
@@ -8303,6 +8310,7 @@ declare module "http2" {
peerMaxConcurrentStreams?: number;
selectPadding?: (frameLen: number, maxFrameLen: number) => number;
settings?: Settings;
createConnection?: (option: SessionOptions) => stream.Duplex;
}
export type ClientSessionOptions = SessionOptions;