File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -888,9 +888,10 @@ changes:
888
888
* ` ALPNProtocols ` : {string[ ] |Buffer[ ] |Uint8Array[ ] |Buffer|Uint8Array}
889
889
An array of strings, ` Buffer ` s or ` Uint8Array ` s, or a single ` Buffer ` or
890
890
` Uint8Array ` containing the supported ALPN protocols. ` Buffer ` s should have
891
- the format ` [len][name][len][name]... ` e.g. ` 0x05hello0x05world ` , where the
892
- first byte is the length of the next protocol name. Passing an array is
893
- usually much simpler, e.g. ` ['hello', 'world'] ` .
891
+ the format ` [len][name][len][name]... ` e.g. ` '\x08http/1.1\x08http/1.0' ` ,
892
+ where the ` len ` byte is the length of the next protocol name. Passing an
893
+ array is usually much simpler, e.g. ` ['http/1.1', 'http/1.0'] ` .
894
+ Protocols earlier in the list have higher preference than those later.
894
895
* ` servername ` : {string} Server name for the SNI (Server Name Indication) TLS
895
896
extension. It is the name of the host being connected to, and must be a host
896
897
name, and not an IP address. It can be used by a multi-homed server to
You can’t perform that action at this time.
0 commit comments