pub async fn next_string(recv: &mut RecvStream) -> Result<String>Expand description
Reads a newline-terminated string from a stream.
Reads bytes until a newline character is encountered and returns the result as a UTF-8 string.
ยงErrors
Returns an error if:
- Connection is closed while reading
- Bytes are not valid UTF-8