OxL Reference

method TlsStream.peerSubject

RFC 2253 subject of the peer's leaf certificate ("" when it sent none, e.g. a client without mutual TLS).

Example:

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

fn who(s: &TlsStream) -> str {
  s.peerSubject()
}
pub(api) fn peerSubject() -> str

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

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

See also