public static IEnumerable <KeyValuePair <string, string> > ParseToSingleValueKeyValuePairs(this HttpRequestHeaders headers)
 {
     return(headers.Select(x =>
                           new KeyValuePair <string, string>(
                               x.Key, x.Value.FirstOrDefault())));
 }