/// Parse a given header line.
Parse a given header line.
Parse a given header line .
fn add(&mut self, line: &str) -> ParsingResult<()> {
        if self.lines >= self.max_lines {
            return Err(ParseError::from("maximum number of HTTP header lines exceeded"));
        } else if self.lines > 0 {
            try!(self.parse_header_line(line));
        } else {
            try!(self.parse_status_line(line));
        }
        self.lines += 1;
        Ok(())
    }
fn add ( & mut self , line : & str ) -> ParsingResult < ( ) > { if self . lines >= self . max_lines { return Err ( ParseError :: from ( " " ) ) ; } else if self . lines > 0 { try ! ( self parse_header_line ( line ) ) ; } else { try ! ( self parse_status_line ( line ) ) ; } self . lines += 1 ; Ok ( ( ) ) }
Parse a given header line.
Parse a given header line .
&mut self
line
&str