diff --git a/doc/api/quic.md b/doc/api/quic.md index d36825d6943264..b11fe8b1ae138e 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1418,6 +1418,32 @@ will be silently dropped and `0n` returned. The local `maxDatagramFrameSize` transport parameter (default: `1200` bytes) controls what this endpoint advertises to the peer as its own maximum. +### `session.servername` + + + +* Type: {string|boolean|null} + +The SNI (Server Name Indication) host name associated with the session. This is +`null` before the client hello is processed. Once the hello has been +processed, this is either the host name string or `false` if the handshake +had no SNI. + +### `session.alpnProtocol` + + + +* Type: {string|null} + +The negotiated ALPN protocol. This is `null` before the client hello is +processed. Once ALPN has been negotiated, this is the protocol string. ALPN +is mandatory in QUIC so this is never `false` on successful connections, +unlike `node:tls` where this is optional. + ### `session.certificate`