title: How do I can iterate cookie values from http response?
body: <p>I am using rest API in my flutter app. For further request I need JSESSIONID which I received from my profile API. I successful got response but I need guide to iterate cookie value. </p>
  
  <p>I followed following steps:</p>
  
  <pre><code>final response = await http.get(
        strURL,
        headers: {
          "Authorization": basicAuth,
          "Content-Type": "application/json"
        },
      );
  
      String rawCookie = response.headers['set-cookie'];
      print('rawCookie $rawCookie');
  </code></pre>
  
  <p>As print raw cookie it is printing details:</p>
  
  <pre><code>flutter: rawCookie __cfduid=d5bbe3f8a131478a78ae996e636cca0401544177738; expires=Sat, 07-Dec-19 10:15:38 GMT; path=/; domain=.rayz.ch; HttpOnly,JSESSIONID=6AD6698C5BFC90F1D089696A955E6824; Path=/; HttpOnly
  </code></pre>
  
  <p>I can iterate it by substring but I want to iterate it with a proper way. So please guide me on this. </p>