pub fn header_map_to_hash_map(header_map: &HeaderMap) -> HashMap<String, String>
convert the headermap to hashmap