Instance Propertyswift-nio-ssl 2.34.1NIOSSL
serverHostname
The hostname value from the Server Name Indication (SNI) extension.
var serverHostname: String?This value, if available, indicates the requested server hostname by the client. In a context where a service is handling multiple hostnames (virtual hosts, for example), this value could be used to decide which SSLContext to use for the handshake.