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 netSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
text | str |
timeout | Duration? = none |
Returns
()
Errors
NetError- those of `write`.
Effects
net
Defined in: std/net/tls.oxl:318