{"action":"closed","issue":{"url":"https://api.github.com/repos/ManageIQ/azure-armrest/issues/178","repository_url":"https://api.github.com/repos/ManageIQ/azure-armrest","labels_url":"https://api.github.com/repos/ManageIQ/azure-armrest/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/azure-armrest/issues/178/comments","events_url":"https://api.github.com/repos/ManageIQ/azure-armrest/issues/178/events","html_url":"https://github.com/ManageIQ/azure-armrest/issues/178","id":157981410,"number":178,"title":"Library should store response headers somehow","user":{"login":"djberg96","id":78529,"avatar_url":"https://avatars.githubusercontent.com/u/78529?v=3","gravatar_id":"","url":"https://api.github.com/users/djberg96","html_url":"https://github.com/djberg96","followers_url":"https://api.github.com/users/djberg96/followers","following_url":"https://api.github.com/users/djberg96/following{/other_user}","gists_url":"https://api.github.com/users/djberg96/gists{/gist_id}","starred_url":"https://api.github.com/users/djberg96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djberg96/subscriptions","organizations_url":"https://api.github.com/users/djberg96/orgs","repos_url":"https://api.github.com/users/djberg96/repos","events_url":"https://api.github.com/users/djberg96/events{/privacy}","received_events_url":"https://api.github.com/users/djberg96/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-01T18:56:51Z","updated_at":"2016-09-13T14:10:57Z","closed_at":"2016-09-13T14:10:57Z","body":"Currently we basically ignore the response headers. However, they may contain useful information:\r\n\r\n```\r\n{:cache_control=>\"no-cache\", :pragma=>\"no-cache\", :content_type=>\"application/json\", :content_encoding=>\"gzip\", :expires=>\"-1\", :vary=>\"Accept-Encoding\", :x_ms_request_id=>\"a7e0e1ad-6f3a-4eeb-ace8-9c77c3377179\", :server=>\"Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0\", :x_ms_ratelimit_remaining_subscription_reads=>\"14872\", :x_ms_correlation_request_id=>\"a7e0e1ad-6f3a-4eeb-ace8-9c77c3377179\", :x_ms_routing_request_id=>\"NORTHCENTRALUS:20160601T182659Z:a7e0e1ad-6f3a-4eeb-ace8-9c77c3377179\", :strict_transport_security=>\"max-age=31536000; includeSubDomains\", :date=>\"Wed, 01 Jun 2016 18:26:59 GMT\", :connection=>\"close\"}\r\n```\r\n\r\nNotably, the `:x_ms_ratelimit_remaining_subscription_reads` would be useful to know, especially if we get close to zero.\r\n\r\nI'm not sure how these should be stored, though. Storing header information in the model objects would be wasteful since it would be identical in every object. Perhaps a singleton that stores the header information? I'm open to suggestions."}}
{"actor":{"display_login":"djberg96"}}