pub fn read_bytes_before( reader: &mut impl Read, delimiter: impl Fn(u8) -> bool, capacity: usize, ) -> Result<Vec<u8>, Error>
Reading all bytes before the delimiter.