title: NSHTTPCookie cookiesWithResponseHeaderFields
body: <p>When making a call to an API, I receive this as response:</p>
  
  <pre><code>&lt;NSHTTPURLResponse: 0x7f96f0510f80&gt; { URL: https://insula.magister.net/api/sessie } { status code: 201, headers {
      "Cache-Control" = "max-age=120, private";
      "Content-Length" = 0;
      Date = "Thu, 30 Jul 2015 17:27:11 GMT";
      "Set-Cookie" = "SESSION_ID=c8714acb-22f8-4295-90ee-82e9469890e1; domain=insula.magister.net; path=/api; secure; httponly";
      "Strict-Transport-Security" = "max-age=31536000";
      Vary = "Accept-Encoding,Cookie";
      "X-Frame-Options" = DENY;
  } }
  </code></pre>
  
  <p><code>print(HTTPResponse.allHeaderFiles)</code> prints the following output:</p>
  
  <pre><code>[Set-Cookie: SESSION_ID=65a59001-de75-41ff-ad22-70549baa96f5; domain=insula.magister.net; path=/api; secure; httponly, Strict-Transport-Security: max-age=31536000, Date: Thu, 30 Jul 2015 17:33:13 GMT, X-Frame-Options: DENY, Content-Length: 0, Cache-Control: max-age=120, private, Vary: Accept-Encoding,Cookie]
  </code></pre>
  
  <p>But I can't get <code>cookiesWithResponseHeaderFields</code> to work, I should pass a <code>[String:String]</code> array as first parameter, but the response doesn't seem to meet.</p>
  
  <p><code>let cookies = NSHTTPCookie.cookiesWithResponseHeaderFields(HTTPResponse.allHeaderFields, forURL: url)</code></p>
  
  <p>But as <code>HTTPResponse.allHeaderFiles</code> is an array of type <code>[NSObject:AnyObject]</code> it can't meet the <code>[String:String]</code> parameter type.
  Who knows what to do?</p>