pub async fn read_line_with_limit<R: AsyncBufRead + Unpin>(
reader: &mut R,
buf: &mut Vec<u8>,
max_len: usize,
) -> Result<ReadLineResult>Expand description
Read a line with a size limit, preventing unbounded memory growth.
pub async fn read_line_with_limit<R: AsyncBufRead + Unpin>(
reader: &mut R,
buf: &mut Vec<u8>,
max_len: usize,
) -> Result<ReadLineResult>Read a line with a size limit, preventing unbounded memory growth.