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

method TlsStream.writeText

Writes the UTF-8 bytes of text.

Example:

oxl✓ проверяется в CI
use std.net { TlsStream }

fn hello(s: &TlsStream) -> () | NetError  net {
  s.writeText("hello\n")
}
pub(api) fn writeText(text: str, timeout: Duration? = none) -> () | NetError  net

С версии. 1.0.0-beta

Параметры

ИмяТип
textstr
timeoutDuration? = none

Возвращает

()

Ошибки

Эффекты

net

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

См. также