OxL Справочник OxL
РусскийEnglish

method TlsStream.shutdownWrite

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

Example:

oxl✓ проверяется в 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

С версии. 1.0.0-beta

Параметры

ИмяТип
timeoutDuration? = none

Возвращает

()

Ошибки

Эффекты

net

Определено в: std/net/tls.oxl:335

См. также