pub fn parse_block(buf: &[u8]) -> Option<(Headers, usize)>Expand description
Read a header block. The block ends at a line that starts with a carriage return, or at an empty line.
Returns the headers and the number of bytes that the block used. Returns
None when the buffer holds no complete block.