diff --git a/doc/api/quic.md b/doc/api/quic.md index d36825d6943264..ac3f5712ba2fa6 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1418,6 +1418,30 @@ 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|undefined} + +The SNI (Server Name Indication) host name associated with the session, or +`undefined` if none was set. On a client this is the `servername` requested via +[`quic.connect()`][]. On a server it is the name sent by the peer. + +### `session.alpnProtocol` + + + +* Type: {string|undefined} + +The negotiated ALPN protocol. On a server this is available synchronously as +soon as the session is surfaced to the `onsession` callback; on a client it is +`undefined` until the handshake completes. + ### `session.certificate`