@@ -856,7 +856,8 @@ changes:
856
856
description: The `lookup` option is supported now.
857
857
- version: v8.0.0
858
858
pr-url: https://github.com/nodejs/node/pull/11984
859
- description: The `ALPNProtocols` option can be a `Uint8Array` now.
859
+ description: The `ALPNProtocols` option can be a `TypedArray` or
860
+ `DataView` now.
860
861
- version: v5.3.0, v4.7.0
861
862
pr-url: https://github.com/nodejs/node/pull/4246
862
863
description: The `secureContext` option is supported now.
@@ -884,12 +885,14 @@ changes:
884
885
verified against the list of supplied CAs. An ` 'error' ` event is emitted if
885
886
verification fails; ` err.code ` contains the OpenSSL error code. ** Default:**
886
887
` true ` .
887
- * ` ALPNProtocols ` : {string[ ] |Buffer[ ] |Uint8Array[ ] |Buffer|Uint8Array}
888
- An array of strings, ` Buffer ` s or ` Uint8Array ` s, or a single ` Buffer ` or
889
- ` Uint8Array ` containing the supported ALPN protocols. ` Buffer ` s should have
890
- the format ` [len][name][len][name]... ` e.g. ` 0x05hello0x05world ` , where the
891
- first byte is the length of the next protocol name. Passing an array is
892
- usually much simpler, e.g. ` ['hello', 'world'] ` .
888
+ * ` ALPNProtocols ` : {string[ ] |Buffer[ ] |TypedArray[ ] |DataView[ ] |Buffer|
889
+ TypedArray|DataView}
890
+ An array of strings, ` Buffer ` s or ` TypedArray ` s or ` DataView ` s, or a
891
+ single ` Buffer ` or ` TypedArray ` or ` DataView ` containing the supported ALPN
892
+ protocols. ` Buffer ` s should have the format ` [len][name][len][name]... `
893
+ e.g. ` 0x05hello0x05world ` , where the first byte is the length of the next
894
+ protocol name. Passing an array is usually much simpler, e.g.
895
+ ` ['hello', 'world'] ` .
893
896
* ` servername ` : {string} Server name for the SNI (Server Name Indication) TLS
894
897
extension.
895
898
* ` checkServerIdentity(servername, cert) ` {Function} A callback function
@@ -1134,20 +1137,22 @@ changes:
1134
1137
description: The `options` parameter can now include `clientCertEngine`.
1135
1138
- version: v8.0.0
1136
1139
pr-url: https://github.com/nodejs/node/pull/11984
1137
- description: The `ALPNProtocols` option can be a `Uint8Array` now.
1140
+ description: The `ALPNProtocols` option can be a `TypedArray` or
1141
+ `DataView` now.
1138
1142
- version: v5.0.0
1139
1143
pr-url: https://github.com/nodejs/node/pull/2564
1140
1144
description: ALPN options are supported now.
1141
1145
-->
1142
1146
1143
1147
* ` options ` {Object}
1144
- * ` ALPNProtocols ` : {string[ ] |Buffer[ ] |Uint8Array[ ] |Buffer|Uint8Array}
1145
- An array of strings, ` Buffer ` s or ` Uint8Array ` s, or a single ` Buffer ` or
1146
- ` Uint8Array ` containing the supported ALPN protocols. ` Buffer ` s should have
1147
- the format ` [len][name][len][name]... ` e.g. ` 0x05hello0x05world ` , where the
1148
- first byte is the length of the next protocol name. Passing an array is
1149
- usually much simpler, e.g. ` ['hello', 'world'] ` .
1150
- (Protocols should be ordered by their priority.)
1148
+ * ` ALPNProtocols ` : {string[ ] |Buffer[ ] |TypedArray[ ] |DataView[ ] |Buffer|
1149
+ TypedArray|DataView}
1150
+ An array of strings, ` Buffer ` s or ` TypedArray ` s or ` DataView ` s, or a single
1151
+ ` Buffer ` or ` TypedArray ` or ` DataView ` containing the supported ALPN
1152
+ protocols. ` Buffer ` s should have the format ` [len][name][len][name]... `
1153
+ e.g. ` 0x05hello0x05world ` , where the first byte is the length of the next
1154
+ protocol name. Passing an array is usually much simpler, e.g.
1155
+ ` ['hello', 'world'] ` . (Protocols should be ordered by their priority.)
1151
1156
* ` clientCertEngine ` {string} Name of an OpenSSL engine which can provide the
1152
1157
client certificate.
1153
1158
* ` handshakeTimeout ` {number} Abort the connection if the SSL/TLS handshake
0 commit comments