pub fn validate_headers( headers: &IndexMap<String, String>, ) -> Result<IndexMap<HeaderName, HeaderValue>>