OxL Reference

method TlsStream.serverName

Server side: the server name the client asked for (SNI), "" if none.

Example:

oxl✓ checked in CI
use std.net { TlsStream }

fn asked(s: &TlsStream) -> str {
  s.serverName()
}
pub(api) fn serverName() -> str

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/net/tls.oxl:398

See also