pub fn readline_or_eof(&mut self) -> Result<Option<Bytes>, MultipartError> {
        match self.readline() {
            Err(MultipartError::Incomplete) if self.eof => Ok(Some(self.buf.split().freeze())),
            line => line,
        }
    }
/// Read bytes until new line delimiter or eof
Read bytes until new line delimiter or eof
Read bytes until new line delimiter or eof
pub fn readline_or_eof(&mut self) -> Result<Option<Bytes>, MultipartError> {
        match self.readline() {
            Err(MultipartError::Incomplete) if self.eof => Ok(Some(self.buf.split().freeze())),
            line => line,
        }
    }
pub fn readline_or_eof ( & mut self ) -> Result < Option < Bytes > , MultipartError > { match self . readline ( ) { Err ( MultipartError :: Incomplete ) if self . eof => Ok ( Some ( self . buf . split ( ) . freeze ( ) ) ) , line => line , } }
Read bytes until new line delimiter or eof
Read bytes until new line delimiter or eof
&mut self
&mut self