OxL Reference

method TlsStream.writeText

Writes the UTF-8 bytes of text.

Example:

oxl✓ checked in 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

Since. 1.0.0-beta

Parameters

NameType
textstr
timeoutDuration? = none

Returns

()

Errors

Effects

net

Defined in: std/net/tls.oxl:318

See also