OxL Reference

method TlsStream.version

"TLSv1.3" or "TLSv1.2".

Example:

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

fn modern(s: &TlsStream) -> bool {
  s.version() == "TLSv1.3"
}
pub(api) fn version() -> str

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

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

See also