parse_key_val

Function parse_key_val 

Source
pub fn parse_key_val(s: &str) -> Result<KeyVal>
Expand description

Parse a single key-value pair

  • if key has no any prefix, it is for query
  • if key starts with ‘%’, it is for header
  • if key starts with ‘@’, it is for body