fn new(max_lines: usize) -> ResponseHeaderParser {
        ResponseHeaderParser {
            status_re:   Regex::new(r"^HTTP/(\d\.\d) (\d+) (.*)$").unwrap(),
            header_re:   Regex::new(r"^([^ :]+):\s*(.*)$").unwrap(),
            cont_re:     Regex::new(r"^\s+(.*)$").unwrap(),
            header:      ResponseHeader::new(),
            max_lines:   max_lines,
            lines:       0,
            complete:    false
        }
    }
/// Create a new response header parser with a given header line limit.
Create a new response header parser with a given header line limit.
Create a new response header parser with a given header line limit .
fn new(max_lines: usize) -> ResponseHeaderParser {
        ResponseHeaderParser {
            status_re:   Regex::new(r"^HTTP/(\d\.\d) (\d+) (.*)$").unwrap(),
            header_re:   Regex::new(r"^([^ :]+):\s*(.*)$").unwrap(),
            cont_re:     Regex::new(r"^\s+(.*)$").unwrap(),
            header:      ResponseHeader::new(),
            max_lines:   max_lines,
            lines:       0,
            complete:    false
        }
    }
fn new ( max_lines : usize ) -> ResponseHeaderParser { ResponseHeaderParser { status_re : Regex :: new ( r"^HTTP/(\d\.\d) (\d+) (.*)$" ) . unwrap ( ) , header_re : Regex :: new ( r"^([^ :]+):\s*(.*)$" ) . unwrap ( ) , cont_re : Regex :: new ( r"^\s+(.*)$" ) . unwrap ( ) , header : ResponseHeader :: new ( ) , max_lines : max_lines , lines : 0 , complete : false } }
Create a new response header parser with a given header line limit.
Create a new response header parser with a given header line limit .
max_lines
usize
max_lines
usize