title: How to retrieve Cookies with System.Net.Http.HttpRequestMessage
body: <p>I have this function:</p>
  
  <pre><code>   [HttpPost]
     [Route("api/authenticate")]
     public async Task&lt;HttpResponseMessage&gt; Authenticate(Auth a)
     {
         var cookies = Request.Headers.GetCookies() 
     }
  </code></pre>
  
  <p>After seeing a lot of posts on StackOverflow, I saw people trying to do this:</p>
  
  <pre><code>CookieHeaderValue cookie = Request.Headers.GetCookies("session-id").FirstOrDefault();
  </code></pre>
  
  <p>But I don't see the FirstOrDefault method. When I run GetCookies, I got a string array with one element, and inside of it:</p>
  
  <pre><code>"{cookieKey=cookieValue; cookie2=cookie2}"
  </code></pre>
  
  <p>Should I convert this string to dictionary, or am I missing something on the API? </p>