{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker-py/pulls/comments/48517906","id":48517906,"diff_hunk":"@@ -84,6 +83,19 @@ def __init__(self, base_url=None, version=None,\n                 )\n             )\n \n+    def update_headers(func):","path":"docker/client.py","position":12,"original_position":12,"commit_id":"5d2a5926892aa0cfb1f99fe5c7859ea9a8843303","original_commit_id":"5d2a5926892aa0cfb1f99fe5c7859ea9a8843303","user":{"login":"shin-","id":1086876,"avatar_url":"https://avatars.githubusercontent.com/u/1086876?v=3","gravatar_id":"","url":"https://api.github.com/users/shin-","html_url":"https://github.com/shin-","followers_url":"https://api.github.com/users/shin-/followers","following_url":"https://api.github.com/users/shin-/following{/other_user}","gists_url":"https://api.github.com/users/shin-/gists{/gist_id}","starred_url":"https://api.github.com/users/shin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shin-/subscriptions","organizations_url":"https://api.github.com/users/shin-/orgs","repos_url":"https://api.github.com/users/shin-/repos","events_url":"https://api.github.com/users/shin-/events{/privacy}","received_events_url":"https://api.github.com/users/shin-/received_events","type":"User","site_admin":false},"body":"this should be moved to `decorators.py`","created_at":"2015-12-29T02:01:08Z","updated_at":"2015-12-29T02:01:08Z","html_url":"https://github.com/docker/docker-py/pull/886#discussion_r48517906","pull_request_url":"https://api.github.com/repos/docker/docker-py/pulls/886","_links":{"self":{"href":"https://api.github.com/repos/docker/docker-py/pulls/comments/48517906"},"html":{"href":"https://github.com/docker/docker-py/pull/886#discussion_r48517906"},"pull_request":{"href":"https://api.github.com/repos/docker/docker-py/pulls/886"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker-py/pulls/886","id":54618840,"html_url":"https://github.com/docker/docker-py/pull/886","diff_url":"https://github.com/docker/docker-py/pull/886.diff","patch_url":"https://github.com/docker/docker-py/pull/886.patch","issue_url":"https://api.github.com/repos/docker/docker-py/issues/886","number":886,"state":"open","locked":false,"title":"HttpHeaders support (similar to docker client)","user":{"login":"kpavel","id":1818183,"avatar_url":"https://avatars.githubusercontent.com/u/1818183?v=3","gravatar_id":"","url":"https://api.github.com/users/kpavel","html_url":"https://github.com/kpavel","followers_url":"https://api.github.com/users/kpavel/followers","following_url":"https://api.github.com/users/kpavel/following{/other_user}","gists_url":"https://api.github.com/users/kpavel/gists{/gist_id}","starred_url":"https://api.github.com/users/kpavel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpavel/subscriptions","organizations_url":"https://api.github.com/users/kpavel/orgs","repos_url":"https://api.github.com/users/kpavel/repos","events_url":"https://api.github.com/users/kpavel/events{/privacy}","received_events_url":"https://api.github.com/users/kpavel/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Pavel Kravchenko <kpavel@il.ibm.com>\r\n\r\nDocker client already supports HttpHeaders from config file.\r\nhttps://docs.docker.com/v1.7/docker/reference/commandline/cli/\r\nLeveraging existing configuration file support in python docker client added support for generic HttpHeaders.","created_at":"2015-12-27T15:03:48Z","updated_at":"2015-12-29T02:01:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/docker-py/pulls/886/commits","review_comments_url":"https://api.github.com/repos/docker/docker-py/pulls/886/comments","review_comment_url":"https://api.github.com/repos/docker/docker-py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker-py/issues/886/comments","statuses_url":"https://api.github.com/repos/docker/docker-py/statuses/5d2a5926892aa0cfb1f99fe5c7859ea9a8843303","head":{"label":"kpavel:autz","ref":"autz","sha":"5d2a5926892aa0cfb1f99fe5c7859ea9a8843303","user":{"login":"kpavel","id":1818183,"avatar_url":"https://avatars.githubusercontent.com/u/1818183?v=3","gravatar_id":"","url":"https://api.github.com/users/kpavel","html_url":"https://github.com/kpavel","followers_url":"https://api.github.com/users/kpavel/followers","following_url":"https://api.github.com/users/kpavel/following{/other_user}","gists_url":"https://api.github.com/users/kpavel/gists{/gist_id}","starred_url":"https://api.github.com/users/kpavel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpavel/subscriptions","organizations_url":"https://api.github.com/users/kpavel/orgs","repos_url":"https://api.github.com/users/kpavel/repos","events_url":"https://api.github.com/users/kpavel/events{/privacy}","received_events_url":"https://api.github.com/users/kpavel/received_events","type":"User","site_admin":false},"repo":{"id":48647973,"name":"docker-py-1","full_name":"kpavel/docker-py-1","owner":{"login":"kpavel","id":1818183,"avatar_url":"https://avatars.githubusercontent.com/u/1818183?v=3","gravatar_id":"","url":"https://api.github.com/users/kpavel","html_url":"https://github.com/kpavel","followers_url":"https://api.github.com/users/kpavel/followers","following_url":"https://api.github.com/users/kpavel/following{/other_user}","gists_url":"https://api.github.com/users/kpavel/gists{/gist_id}","starred_url":"https://api.github.com/users/kpavel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpavel/subscriptions","organizations_url":"https://api.github.com/users/kpavel/orgs","repos_url":"https://api.github.com/users/kpavel/repos","events_url":"https://api.github.com/users/kpavel/events{/privacy}","received_events_url":"https://api.github.com/users/kpavel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kpavel/docker-py-1","description":"An API client for docker written in Python","fork":true,"url":"https://api.github.com/repos/kpavel/docker-py-1","forks_url":"https://api.github.com/repos/kpavel/docker-py-1/forks","keys_url":"https://api.github.com/repos/kpavel/docker-py-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kpavel/docker-py-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kpavel/docker-py-1/teams","hooks_url":"https://api.github.com/repos/kpavel/docker-py-1/hooks","issue_events_url":"https://api.github.com/repos/kpavel/docker-py-1/issues/events{/number}","events_url":"https://api.github.com/repos/kpavel/docker-py-1/events","assignees_url":"https://api.github.com/repos/kpavel/docker-py-1/assignees{/user}","branches_url":"https://api.github.com/repos/kpavel/docker-py-1/branches{/branch}","tags_url":"https://api.github.com/repos/kpavel/docker-py-1/tags","blobs_url":"https://api.github.com/repos/kpavel/docker-py-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kpavel/docker-py-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kpavel/docker-py-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/kpavel/docker-py-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kpavel/docker-py-1/statuses/{sha}","languages_url":"https://api.github.com/repos/kpavel/docker-py-1/languages","stargazers_url":"https://api.github.com/repos/kpavel/docker-py-1/stargazers","contributors_url":"https://api.github.com/repos/kpavel/docker-py-1/contributors","subscribers_url":"https://api.github.com/repos/kpavel/docker-py-1/subscribers","subscription_url":"https://api.github.com/repos/kpavel/docker-py-1/subscription","commits_url":"https://api.github.com/repos/kpavel/docker-py-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/kpavel/docker-py-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/kpavel/docker-py-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/kpavel/docker-py-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/kpavel/docker-py-1/contents/{+path}","compare_url":"https://api.github.com/repos/kpavel/docker-py-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kpavel/docker-py-1/merges","archive_url":"https://api.github.com/repos/kpavel/docker-py-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kpavel/docker-py-1/downloads","issues_url":"https://api.github.com/repos/kpavel/docker-py-1/issues{/number}","pulls_url":"https://api.github.com/repos/kpavel/docker-py-1/pulls{/number}","milestones_url":"https://api.github.com/repos/kpavel/docker-py-1/milestones{/number}","notifications_url":"https://api.github.com/repos/kpavel/docker-py-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kpavel/docker-py-1/labels{/name}","releases_url":"https://api.github.com/repos/kpavel/docker-py-1/releases{/id}","created_at":"2015-12-27T14:28:30Z","updated_at":"2015-12-27T14:28:32Z","pushed_at":"2015-12-27T14:56:44Z","git_url":"git://github.com/kpavel/docker-py-1.git","ssh_url":"git@github.com:kpavel/docker-py-1.git","clone_url":"https://github.com/kpavel/docker-py-1.git","svn_url":"https://github.com/kpavel/docker-py-1","homepage":"","size":2048,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"docker:master","ref":"master","sha":"57512760c83fbe41302891aa51e34a86f4db74de","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":10247874,"name":"docker-py","full_name":"docker/docker-py","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker-py","description":"An API client for docker written in Python","fork":false,"url":"https://api.github.com/repos/docker/docker-py","forks_url":"https://api.github.com/repos/docker/docker-py/forks","keys_url":"https://api.github.com/repos/docker/docker-py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker-py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker-py/teams","hooks_url":"https://api.github.com/repos/docker/docker-py/hooks","issue_events_url":"https://api.github.com/repos/docker/docker-py/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker-py/events","assignees_url":"https://api.github.com/repos/docker/docker-py/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker-py/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker-py/tags","blobs_url":"https://api.github.com/repos/docker/docker-py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker-py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker-py/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker-py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker-py/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker-py/languages","stargazers_url":"https://api.github.com/repos/docker/docker-py/stargazers","contributors_url":"https://api.github.com/repos/docker/docker-py/contributors","subscribers_url":"https://api.github.com/repos/docker/docker-py/subscribers","subscription_url":"https://api.github.com/repos/docker/docker-py/subscription","commits_url":"https://api.github.com/repos/docker/docker-py/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker-py/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker-py/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker-py/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker-py/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker-py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker-py/merges","archive_url":"https://api.github.com/repos/docker/docker-py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker-py/downloads","issues_url":"https://api.github.com/repos/docker/docker-py/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker-py/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker-py/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker-py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker-py/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker-py/releases{/id}","created_at":"2013-05-23T16:15:07Z","updated_at":"2015-12-28T18:12:18Z","pushed_at":"2015-12-27T17:59:01Z","git_url":"git://github.com/docker/docker-py.git","ssh_url":"git@github.com:docker/docker-py.git","clone_url":"https://github.com/docker/docker-py.git","svn_url":"https://github.com/docker/docker-py","homepage":"","size":3479,"stargazers_count":1226,"watchers_count":1226,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":469,"mirror_url":null,"open_issues_count":66,"forks":469,"open_issues":66,"watchers":1226,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker-py/pulls/886"},"html":{"href":"https://github.com/docker/docker-py/pull/886"},"issue":{"href":"https://api.github.com/repos/docker/docker-py/issues/886"},"comments":{"href":"https://api.github.com/repos/docker/docker-py/issues/886/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker-py/pulls/886/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker-py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker-py/pulls/886/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker-py/statuses/5d2a5926892aa0cfb1f99fe5c7859ea9a8843303"}}}}