method TlsStream.writeText
Writes the UTF-8 bytes of text.
Example:
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
Параметры
| Имя | Тип |
|---|---|
text | str |
timeout | Duration? = none |
Возвращает
()
Ошибки
NetError- those of `write`.
Эффекты
net
Определено в: std/net/tls.oxl:318