pub fn header_map_to_string(hm: &HeaderMap) -> Result<String, Error>
Encode a header map as a string.