OxL Reference

method TlsStream.shutdownWrite

Sends close_notify (the peer reads end of stream) and keeps receiving.

Example:

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

fn finish(s: &TlsStream) -> str | NetError  net {
  s.shutdownWrite()?
  s.readText(4096)
}
pub(api) fn shutdownWrite(timeout: Duration? = none) -> () | NetError  net

Since. 1.0.0-beta

Parameters

NameType
timeoutDuration? = none

Returns

()

Errors

Effects

net

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

See also