title: how to get specific cookie value from swi prolog http request
body: <p>SWI prolog http server libraries provide a way to elegantly access the incoming http get query parameters / term:</p>
  
  <pre><code>http_parameters(Request, [term(QueryTerm, [])]),
  </code></pre>
  
  <p>Is there an equivalent method that allows retrieval of a specific cookie name/value.</p>
  
  <p>eg. of fictitious predicate I wish to exist:</p>
  
  <pre><code>http_parameters(Request, [cookie('my_cookieName', MyCookieValue), [])]),
  </code></pre>
  
  <p><code>http_parameters</code> seems to only access the 'search(X)' value (ie form data only).</p>
  
  <p>As the request object is just a list, I could do something like:</p>
  
  <pre><code>nth1(_, Request, cookie(CookieL)),
  </code></pre>
  
  <p>Then parse out the name/value pair from CookieL... it's just ugly, if there is a predicate that already goes straight there.</p>