diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2018-11-07 13:16:50 -0800 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2018-11-13 12:46:08 -0800 |
commit | 7cd08eb100e03dd9c87fd9b0646c0f8029080081 (patch) | |
tree | 8285fd0f8f52cbccb4061f87d05ae6d70d0645d7 /doc | |
parent | 5877836a33c23dfa591f75005182fb4ab379bcdc (diff) | |
download | android-node-v8-7cd08eb100e03dd9c87fd9b0646c0f8029080081.tar.gz android-node-v8-7cd08eb100e03dd9c87fd9b0646c0f8029080081.tar.bz2 android-node-v8-7cd08eb100e03dd9c87fd9b0646c0f8029080081.zip |
doc: use real protocol names in ALPN example
PR-URL: https://github.com/nodejs/node/pull/24232
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/tls.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/api/tls.md b/doc/api/tls.md index 8380353934..1d0d8bfad2 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -903,9 +903,10 @@ changes: An array of strings, `Buffer`s or `TypedArray`s or `DataView`s, or a single `Buffer` or `TypedArray` or `DataView` containing the supported ALPN protocols. `Buffer`s should have the format `[len][name][len][name]...` - e.g. `0x05hello0x05world`, where the first byte is the length of the next - protocol name. Passing an array is usually much simpler, e.g. - `['hello', 'world']`. + e.g. `'\x08http/1.1\x08http/1.0'`, where the `len` byte is the length of the + next protocol name. Passing an array is usually much simpler, e.g. + `['http/1.1', 'http/1.0']`. Protocols earlier in the list have higher + preference than those later. * `servername`: {string} Server name for the SNI (Server Name Indication) TLS extension. It is the name of the host being connected to, and must be a host name, and not an IP address. It can be used by a multi-homed server to |