{"action":"created","issue":{"url":"https://api.github.com/repos/jnunemaker/httparty/issues/476","repository_url":"https://api.github.com/repos/jnunemaker/httparty","labels_url":"https://api.github.com/repos/jnunemaker/httparty/issues/476/labels{/name}","comments_url":"https://api.github.com/repos/jnunemaker/httparty/issues/476/comments","events_url":"https://api.github.com/repos/jnunemaker/httparty/issues/476/events","html_url":"https://github.com/jnunemaker/httparty/issues/476","id":157043435,"number":476,"title":"Better way to access the CookieHash from the response?","user":{"login":"tomrossi7","id":64581,"avatar_url":"https://avatars.githubusercontent.com/u/64581?v=3","gravatar_id":"","url":"https://api.github.com/users/tomrossi7","html_url":"https://github.com/tomrossi7","followers_url":"https://api.github.com/users/tomrossi7/followers","following_url":"https://api.github.com/users/tomrossi7/following{/other_user}","gists_url":"https://api.github.com/users/tomrossi7/gists{/gist_id}","starred_url":"https://api.github.com/users/tomrossi7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomrossi7/subscriptions","organizations_url":"https://api.github.com/users/tomrossi7/orgs","repos_url":"https://api.github.com/users/tomrossi7/repos","events_url":"https://api.github.com/users/tomrossi7/events{/privacy}","received_events_url":"https://api.github.com/users/tomrossi7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-05-26T18:03:06Z","updated_at":"2016-07-29T12:10:18Z","closed_at":null,"body":"If I am understanding, currently to access cookies you would need to do something like the following:\r\n\r\n```\r\ncookies = response.headers['Set-Cookie']\r\ncookie_hash = CookieHash.new()\r\ncookie_hash.add_cookies(cookies)\r\n```\r\n\r\nIn this scenario, the cookie_hash is actually an array. If you wanted to access the cookie keys and values, you would need to do some more additional parsing outside of httparty. Am I missing something? Would it be useful if I created a branch that allowed us to do something like this:\r\n\r\n`cookies = response.cookies # Returns a CookieHash with keys and values`\r\n"},"comment":{"url":"https://api.github.com/repos/jnunemaker/httparty/issues/comments/236164533","html_url":"https://github.com/jnunemaker/httparty/issues/476#issuecomment-236164533","issue_url":"https://api.github.com/repos/jnunemaker/httparty/issues/476","id":236164533,"user":{"login":"jnunemaker","id":235,"avatar_url":"https://avatars.githubusercontent.com/u/235?v=3","gravatar_id":"","url":"https://api.github.com/users/jnunemaker","html_url":"https://github.com/jnunemaker","followers_url":"https://api.github.com/users/jnunemaker/followers","following_url":"https://api.github.com/users/jnunemaker/following{/other_user}","gists_url":"https://api.github.com/users/jnunemaker/gists{/gist_id}","starred_url":"https://api.github.com/users/jnunemaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnunemaker/subscriptions","organizations_url":"https://api.github.com/users/jnunemaker/orgs","repos_url":"https://api.github.com/users/jnunemaker/repos","events_url":"https://api.github.com/users/jnunemaker/events{/privacy}","received_events_url":"https://api.github.com/users/jnunemaker/received_events","type":"User","site_admin":true},"created_at":"2016-07-29T12:10:17Z","updated_at":"2016-07-29T12:10:17Z","body":"@dmitry that sounds like a good idea to me. Anything we need to do in httparty for this or just tell people to use that and then set cookies using httparty's cookie stuff that already exists?"}}
{"actor":{"display_login":"jnunemaker"}}