{"action":"closed","number":183,"pull_request":{"url":"https://api.github.com/repos/Yelp/bravado/pulls/183","id":48247156,"html_url":"https://github.com/Yelp/bravado/pull/183","diff_url":"https://github.com/Yelp/bravado/pull/183.diff","patch_url":"https://github.com/Yelp/bravado/pull/183.patch","issue_url":"https://api.github.com/repos/Yelp/bravado/issues/183","number":183,"state":"closed","locked":false,"title":"Experimental implementation for post-processing incoming responses","user":{"login":"analogue","id":26757,"avatar_url":"https://avatars.githubusercontent.com/u/26757?v=3","gravatar_id":"","url":"https://api.github.com/users/analogue","html_url":"https://github.com/analogue","followers_url":"https://api.github.com/users/analogue/followers","following_url":"https://api.github.com/users/analogue/following{/other_user}","gists_url":"https://api.github.com/users/analogue/gists{/gist_id}","starred_url":"https://api.github.com/users/analogue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analogue/subscriptions","organizations_url":"https://api.github.com/users/analogue/orgs","repos_url":"https://api.github.com/users/analogue/repos","events_url":"https://api.github.com/users/analogue/events{/privacy}","received_events_url":"https://api.github.com/users/analogue/received_events","type":"User","site_admin":false},"body":"See #178 for context.\r\n\r\n@prat0318 See if this satisfies the zipkin decorator use case. I'll add unit tests and docs once the interface looks good.  It is unfortunate that we can't use the same decorator pattern we've been using for wrapping ``Client``, ``Resource`` and ``Operation`` since the point of instrumentation is internal to the ``HttpFuture``.\r\n\r\nReponse callbacks\r\n```python\r\ndef foo(incoming_response, operation):\r\n    print 'foo'\r\n\r\nrequest_options = {\r\n    'response_callbacks': [foo]    \r\n}\r\n\r\nclient = Swagger.from_url(...)\r\npet = client.pet.getPet(petId=1234, _request_options=request_options).result()\r\n```\r\n\r\n**Edit**: Removed client-wide response callbacks since client decorators can insert additional callbacks in their respective operation decorator.\r\n","created_at":"2015-10-20T19:36:05Z","updated_at":"2015-10-23T16:16:27Z","closed_at":"2015-10-23T16:16:27Z","merged_at":"2015-10-23T16:16:27Z","merge_commit_sha":"58fa23b04640a293c79a20bbda013d26dcb4c676","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/bravado/pulls/183/commits","review_comments_url":"https://api.github.com/repos/Yelp/bravado/pulls/183/comments","review_comment_url":"https://api.github.com/repos/Yelp/bravado/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/bravado/issues/183/comments","statuses_url":"https://api.github.com/repos/Yelp/bravado/statuses/d88db68f8aee865ba5be995634a741a38d2b22b7","head":{"label":"analogue:incoming_response_pipeline","ref":"incoming_response_pipeline","sha":"d88db68f8aee865ba5be995634a741a38d2b22b7","user":{"login":"analogue","id":26757,"avatar_url":"https://avatars.githubusercontent.com/u/26757?v=3","gravatar_id":"","url":"https://api.github.com/users/analogue","html_url":"https://github.com/analogue","followers_url":"https://api.github.com/users/analogue/followers","following_url":"https://api.github.com/users/analogue/following{/other_user}","gists_url":"https://api.github.com/users/analogue/gists{/gist_id}","starred_url":"https://api.github.com/users/analogue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analogue/subscriptions","organizations_url":"https://api.github.com/users/analogue/orgs","repos_url":"https://api.github.com/users/analogue/repos","events_url":"https://api.github.com/users/analogue/events{/privacy}","received_events_url":"https://api.github.com/users/analogue/received_events","type":"User","site_admin":false},"repo":{"id":25488246,"name":"bravado","full_name":"analogue/bravado","owner":{"login":"analogue","id":26757,"avatar_url":"https://avatars.githubusercontent.com/u/26757?v=3","gravatar_id":"","url":"https://api.github.com/users/analogue","html_url":"https://github.com/analogue","followers_url":"https://api.github.com/users/analogue/followers","following_url":"https://api.github.com/users/analogue/following{/other_user}","gists_url":"https://api.github.com/users/analogue/gists{/gist_id}","starred_url":"https://api.github.com/users/analogue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analogue/subscriptions","organizations_url":"https://api.github.com/users/analogue/orgs","repos_url":"https://api.github.com/users/analogue/repos","events_url":"https://api.github.com/users/analogue/events{/privacy}","received_events_url":"https://api.github.com/users/analogue/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/analogue/bravado","description":"Python client library for Swagger 2.0","fork":true,"url":"https://api.github.com/repos/analogue/bravado","forks_url":"https://api.github.com/repos/analogue/bravado/forks","keys_url":"https://api.github.com/repos/analogue/bravado/keys{/key_id}","collaborators_url":"https://api.github.com/repos/analogue/bravado/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/analogue/bravado/teams","hooks_url":"https://api.github.com/repos/analogue/bravado/hooks","issue_events_url":"https://api.github.com/repos/analogue/bravado/issues/events{/number}","events_url":"https://api.github.com/repos/analogue/bravado/events","assignees_url":"https://api.github.com/repos/analogue/bravado/assignees{/user}","branches_url":"https://api.github.com/repos/analogue/bravado/branches{/branch}","tags_url":"https://api.github.com/repos/analogue/bravado/tags","blobs_url":"https://api.github.com/repos/analogue/bravado/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/analogue/bravado/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/analogue/bravado/git/refs{/sha}","trees_url":"https://api.github.com/repos/analogue/bravado/git/trees{/sha}","statuses_url":"https://api.github.com/repos/analogue/bravado/statuses/{sha}","languages_url":"https://api.github.com/repos/analogue/bravado/languages","stargazers_url":"https://api.github.com/repos/analogue/bravado/stargazers","contributors_url":"https://api.github.com/repos/analogue/bravado/contributors","subscribers_url":"https://api.github.com/repos/analogue/bravado/subscribers","subscription_url":"https://api.github.com/repos/analogue/bravado/subscription","commits_url":"https://api.github.com/repos/analogue/bravado/commits{/sha}","git_commits_url":"https://api.github.com/repos/analogue/bravado/git/commits{/sha}","comments_url":"https://api.github.com/repos/analogue/bravado/comments{/number}","issue_comment_url":"https://api.github.com/repos/analogue/bravado/issues/comments{/number}","contents_url":"https://api.github.com/repos/analogue/bravado/contents/{+path}","compare_url":"https://api.github.com/repos/analogue/bravado/compare/{base}...{head}","merges_url":"https://api.github.com/repos/analogue/bravado/merges","archive_url":"https://api.github.com/repos/analogue/bravado/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/analogue/bravado/downloads","issues_url":"https://api.github.com/repos/analogue/bravado/issues{/number}","pulls_url":"https://api.github.com/repos/analogue/bravado/pulls{/number}","milestones_url":"https://api.github.com/repos/analogue/bravado/milestones{/number}","notifications_url":"https://api.github.com/repos/analogue/bravado/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/analogue/bravado/labels{/name}","releases_url":"https://api.github.com/repos/analogue/bravado/releases{/id}","created_at":"2014-10-20T21:50:53Z","updated_at":"2015-05-14T19:23:38Z","pushed_at":"2015-10-23T16:12:30Z","git_url":"git://github.com/analogue/bravado.git","ssh_url":"git@github.com:analogue/bravado.git","clone_url":"https://github.com/analogue/bravado.git","svn_url":"https://github.com/analogue/bravado","homepage":"","size":1522,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Yelp:master","ref":"master","sha":"4b8fa13cae6ea2ef1b135b78b87fbca6f190f7ee","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":20313056,"name":"bravado","full_name":"Yelp/bravado","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/bravado","description":"Bravado is a python client library for Swagger 2.0 services","fork":false,"url":"https://api.github.com/repos/Yelp/bravado","forks_url":"https://api.github.com/repos/Yelp/bravado/forks","keys_url":"https://api.github.com/repos/Yelp/bravado/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/bravado/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/bravado/teams","hooks_url":"https://api.github.com/repos/Yelp/bravado/hooks","issue_events_url":"https://api.github.com/repos/Yelp/bravado/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/bravado/events","assignees_url":"https://api.github.com/repos/Yelp/bravado/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/bravado/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/bravado/tags","blobs_url":"https://api.github.com/repos/Yelp/bravado/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/bravado/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/bravado/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/bravado/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/bravado/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/bravado/languages","stargazers_url":"https://api.github.com/repos/Yelp/bravado/stargazers","contributors_url":"https://api.github.com/repos/Yelp/bravado/contributors","subscribers_url":"https://api.github.com/repos/Yelp/bravado/subscribers","subscription_url":"https://api.github.com/repos/Yelp/bravado/subscription","commits_url":"https://api.github.com/repos/Yelp/bravado/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/bravado/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/bravado/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/bravado/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/bravado/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/bravado/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/bravado/merges","archive_url":"https://api.github.com/repos/Yelp/bravado/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/bravado/downloads","issues_url":"https://api.github.com/repos/Yelp/bravado/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/bravado/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/bravado/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/bravado/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/bravado/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/bravado/releases{/id}","created_at":"2014-05-30T01:03:02Z","updated_at":"2015-10-23T16:01:32Z","pushed_at":"2015-10-23T16:16:27Z","git_url":"git://github.com/Yelp/bravado.git","ssh_url":"git@github.com:Yelp/bravado.git","clone_url":"https://github.com/Yelp/bravado.git","svn_url":"https://github.com/Yelp/bravado","homepage":"","size":2126,"stargazers_count":47,"watchers_count":47,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":19,"forks":17,"open_issues":19,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/bravado/pulls/183"},"html":{"href":"https://github.com/Yelp/bravado/pull/183"},"issue":{"href":"https://api.github.com/repos/Yelp/bravado/issues/183"},"comments":{"href":"https://api.github.com/repos/Yelp/bravado/issues/183/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/bravado/pulls/183/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/bravado/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/bravado/pulls/183/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/bravado/statuses/d88db68f8aee865ba5be995634a741a38d2b22b7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"analogue","id":26757,"avatar_url":"https://avatars.githubusercontent.com/u/26757?v=3","gravatar_id":"","url":"https://api.github.com/users/analogue","html_url":"https://github.com/analogue","followers_url":"https://api.github.com/users/analogue/followers","following_url":"https://api.github.com/users/analogue/following{/other_user}","gists_url":"https://api.github.com/users/analogue/gists{/gist_id}","starred_url":"https://api.github.com/users/analogue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analogue/subscriptions","organizations_url":"https://api.github.com/users/analogue/orgs","repos_url":"https://api.github.com/users/analogue/repos","events_url":"https://api.github.com/users/analogue/events{/privacy}","received_events_url":"https://api.github.com/users/analogue/received_events","type":"User","site_admin":false},"comments":7,"review_comments":4,"commits":4,"additions":414,"deletions":305,"changed_files":18}}