method TlsStream.shutdownWrite
Sends close_notify (the peer reads end of stream) and keeps receiving.
Example:
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
Параметры
| Имя | Тип |
|---|---|
timeout | Duration? = none |
Возвращает
()
Ошибки
NetError- `Timeout`, `Unavailable`.
Эффекты
net
Определено в: std/net/tls.oxl:335