lib/restclient/request.rb
def cookies
      hash = {}

      @cookie_jar.cookies(uri).each do |c|
        hash[c.name] = c.value
      end

      hash
    end
def cookies
      hash = {}

      @cookie_jar.cookies(uri).each do |c|
        hash[c.name] = c.value
      end

      hash
    end
def cookies hash = { } @cookie_jar . cookies ( uri ) . each do | c | hash [ c . name ] = c . value end hash end
Render a hash of key => value pairs for cookies in the Request#cookie_jar
 that are valid for the Request#uri. This will not necessarily include all
 cookies if there are duplicate keys. It's safer to use the cookie_jar
 directly if that's a concern.

 @see Request#cookie_jar

 @return [Hash]
Render a hash of key = > value pairs for cookies in the Request#cookie_jar that are valid for the Request#uri . This will not necessarily include all cookies if there are duplicate keys . It s safer to use the cookie_jar directly if that s a concern .