{"action":"created","issue":{"url":"https://api.github.com/repos/mmazi/rescu/issues/72","labels_url":"https://api.github.com/repos/mmazi/rescu/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/mmazi/rescu/issues/72/comments","events_url":"https://api.github.com/repos/mmazi/rescu/issues/72/events","html_url":"https://github.com/mmazi/rescu/issues/72","id":111957352,"number":72,"title":"Mapping HTTP response headers","user":{"login":"rafalkrupinski","id":3732079,"avatar_url":"https://avatars.githubusercontent.com/u/3732079?v=3","gravatar_id":"","url":"https://api.github.com/users/rafalkrupinski","html_url":"https://github.com/rafalkrupinski","followers_url":"https://api.github.com/users/rafalkrupinski/followers","following_url":"https://api.github.com/users/rafalkrupinski/following{/other_user}","gists_url":"https://api.github.com/users/rafalkrupinski/gists{/gist_id}","starred_url":"https://api.github.com/users/rafalkrupinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafalkrupinski/subscriptions","organizations_url":"https://api.github.com/users/rafalkrupinski/orgs","repos_url":"https://api.github.com/users/rafalkrupinski/repos","events_url":"https://api.github.com/users/rafalkrupinski/events{/privacy}","received_events_url":"https://api.github.com/users/rafalkrupinski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-17T11:05:00Z","updated_at":"2015-10-17T14:34:51Z","closed_at":null,"body":"Hi\r\n\r\nCan Rescu map HTTP response parameters?"},"comment":{"url":"https://api.github.com/repos/mmazi/rescu/issues/comments/148919278","html_url":"https://github.com/mmazi/rescu/issues/72#issuecomment-148919278","issue_url":"https://api.github.com/repos/mmazi/rescu/issues/72","id":148919278,"user":{"login":"mmazi","id":294075,"avatar_url":"https://avatars.githubusercontent.com/u/294075?v=3","gravatar_id":"","url":"https://api.github.com/users/mmazi","html_url":"https://github.com/mmazi","followers_url":"https://api.github.com/users/mmazi/followers","following_url":"https://api.github.com/users/mmazi/following{/other_user}","gists_url":"https://api.github.com/users/mmazi/gists{/gist_id}","starred_url":"https://api.github.com/users/mmazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmazi/subscriptions","organizations_url":"https://api.github.com/users/mmazi/orgs","repos_url":"https://api.github.com/users/mmazi/repos","events_url":"https://api.github.com/users/mmazi/events{/privacy}","received_events_url":"https://api.github.com/users/mmazi/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T14:34:51Z","updated_at":"2015-10-17T14:34:51Z","body":"Rescu only (and only to some extent) handles the `Content-Type` and `Content-Encoding` header; it generally ignores other HTTP headers.\r\n\r\nThere is an undocumented feature though where rescu can, in case that it will throw an exception (instead of returning normally) from a HTTP method invocation, populate the exception with response headers. The exception type just needs to be `HttpResponseAware`. If this sounds like what you need, let me know and I'll write some docs. There is also an example or two in the tests towards the end of `RestInvocationHandlerTest`.\r\n\r\nRescu currently does not provide a way to capture HTTP headers with regular (non-exception) returns."}}