title: How to fill a dictionary with all request headers
body: <p>Im able to get request headers one by one when I have the header key name with this method</p>
  
  <pre><code>private string GetHeader(string Name)
  {
      IEnumerable&lt;string&gt; headerValues;
      if (Request.Headers.TryGetValues(Name, out headerValues))
      {
          return headerValues.FirstOrDefault();
      }
      else { return ""; }
  }
  </code></pre>
  
  <p>But what I really would like is to get all request headers and store them in a dictionary, something like this</p>
  
  <pre><code>Dictionary&lt;string, string&gt; ss = Request.Headers.ToDictionary(a =&gt; a.Key, a =&gt; a.Value); 
  //this doesn't work
  </code></pre>
  
  <p>Does anyone know how to do this?</p>