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 @@ -903,9 +903,10 @@ changes:
903
903
An array of strings, ` Buffer ` s or ` TypedArray ` s or ` DataView ` s, or a
904
904
single ` Buffer ` or ` TypedArray ` or ` DataView ` containing the supported ALPN
905
905
protocols. ` Buffer ` s should have the format ` [len][name][len][name]... `
906
- e.g. ` 0x05hello0x05world ` , where the first byte is the length of the next
907
- protocol name. Passing an array is usually much simpler, e.g.
908
- ` ['hello', 'world'] ` .
906
+ e.g. ` '\x08http/1.1\x08http/1.0' ` , where the ` len ` byte is the length of the
907
+ next protocol name. Passing an array is usually much simpler, e.g.
908
+ ` ['http/1.1', 'http/1.0'] ` . Protocols earlier in the list have higher
909
+ preference than those later.
909
910
* ` servername ` : {string} Server name for the SNI (Server Name Indication) TLS
910
911
extension. It is the name of the host being connected to, and must be a host
911
912
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