{"action":"created","comment":{"url":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls/comments/26581845","id":26581845,"diff_hunk":"@@ -195,6 +195,10 @@ Client.prototype._request = function (options, callback) {\n       self.emit('log::trace', 'Creating Authenticated Proxy Request');\n       var apiStream = Client.super_.prototype._request.call(self, options, callback);\n \n+      proxyStream.on('abort', function () {\n+        apiStream.abort();\n+      });\n+","path":"lib/pkgcloud/openstack/client.js","position":7,"original_position":7,"commit_id":"624183bb8770bc9991a9918e87eadbe1fa87c4ab","original_commit_id":"624183bb8770bc9991a9918e87eadbe1fa87c4ab","user":{"login":"jcrugzz","id":592149,"avatar_url":"https://avatars.githubusercontent.com/u/592149?v=3","gravatar_id":"","url":"https://api.github.com/users/jcrugzz","html_url":"https://github.com/jcrugzz","followers_url":"https://api.github.com/users/jcrugzz/followers","following_url":"https://api.github.com/users/jcrugzz/following{/other_user}","gists_url":"https://api.github.com/users/jcrugzz/gists{/gist_id}","starred_url":"https://api.github.com/users/jcrugzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcrugzz/subscriptions","organizations_url":"https://api.github.com/users/jcrugzz/orgs","repos_url":"https://api.github.com/users/jcrugzz/repos","events_url":"https://api.github.com/users/jcrugzz/events{/privacy}","received_events_url":"https://api.github.com/users/jcrugzz/received_events","type":"User","site_admin":false},"body":"@meteormatt here you could add the `abort()` function which will be on the returned `proxyStream` from `this._request` in `exports.download`.\r\n\r\n```js\r\nproxyStream.abort = function () {\r\n  apiStream.abort();\r\n});\r\n```","created_at":"2015-03-17T15:19:28Z","updated_at":"2015-03-17T15:19:28Z","html_url":"https://github.com/pkgcloud/pkgcloud/pull/416#discussion_r26581845","pull_request_url":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls/416","_links":{"self":{"href":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls/comments/26581845"},"html":{"href":"https://github.com/pkgcloud/pkgcloud/pull/416#discussion_r26581845"},"pull_request":{"href":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls/416"}}},"pull_request":{"url":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls/416","id":31018787,"html_url":"https://github.com/pkgcloud/pkgcloud/pull/416","diff_url":"https://github.com/pkgcloud/pkgcloud/pull/416.diff","patch_url":"https://github.com/pkgcloud/pkgcloud/pull/416.patch","issue_url":"https://api.github.com/repos/pkgcloud/pkgcloud/issues/416","number":416,"state":"open","locked":false,"title":"Cancel openstack's client.download","user":{"login":"meteormatt","id":424475,"avatar_url":"https://avatars.githubusercontent.com/u/424475?v=3","gravatar_id":"","url":"https://api.github.com/users/meteormatt","html_url":"https://github.com/meteormatt","followers_url":"https://api.github.com/users/meteormatt/followers","following_url":"https://api.github.com/users/meteormatt/following{/other_user}","gists_url":"https://api.github.com/users/meteormatt/gists{/gist_id}","starred_url":"https://api.github.com/users/meteormatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteormatt/subscriptions","organizations_url":"https://api.github.com/users/meteormatt/orgs","repos_url":"https://api.github.com/users/meteormatt/repos","events_url":"https://api.github.com/users/meteormatt/events{/privacy}","received_events_url":"https://api.github.com/users/meteormatt/received_events","type":"User","site_admin":false},"body":"1. Add `abort` on `openstack`'s client.download\r\n1. `openstack`'s file request should able to add header such as `Range`\r\n1. give `response` and `error` event to callback\r\n\r\nclose #379 also","created_at":"2015-03-12T09:22:32Z","updated_at":"2015-03-17T15:19:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f31d29729cb6ad6288e094e267cee1d25447504","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls/416/commits","review_comments_url":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls/416/comments","review_comment_url":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pkgcloud/pkgcloud/issues/416/comments","statuses_url":"https://api.github.com/repos/pkgcloud/pkgcloud/statuses/624183bb8770bc9991a9918e87eadbe1fa87c4ab","head":{"label":"meteormatt:master","ref":"master","sha":"624183bb8770bc9991a9918e87eadbe1fa87c4ab","user":{"login":"meteormatt","id":424475,"avatar_url":"https://avatars.githubusercontent.com/u/424475?v=3","gravatar_id":"","url":"https://api.github.com/users/meteormatt","html_url":"https://github.com/meteormatt","followers_url":"https://api.github.com/users/meteormatt/followers","following_url":"https://api.github.com/users/meteormatt/following{/other_user}","gists_url":"https://api.github.com/users/meteormatt/gists{/gist_id}","starred_url":"https://api.github.com/users/meteormatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteormatt/subscriptions","organizations_url":"https://api.github.com/users/meteormatt/orgs","repos_url":"https://api.github.com/users/meteormatt/repos","events_url":"https://api.github.com/users/meteormatt/events{/privacy}","received_events_url":"https://api.github.com/users/meteormatt/received_events","type":"User","site_admin":false},"repo":{"id":27578293,"name":"pkgcloud","full_name":"meteormatt/pkgcloud","owner":{"login":"meteormatt","id":424475,"avatar_url":"https://avatars.githubusercontent.com/u/424475?v=3","gravatar_id":"","url":"https://api.github.com/users/meteormatt","html_url":"https://github.com/meteormatt","followers_url":"https://api.github.com/users/meteormatt/followers","following_url":"https://api.github.com/users/meteormatt/following{/other_user}","gists_url":"https://api.github.com/users/meteormatt/gists{/gist_id}","starred_url":"https://api.github.com/users/meteormatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteormatt/subscriptions","organizations_url":"https://api.github.com/users/meteormatt/orgs","repos_url":"https://api.github.com/users/meteormatt/repos","events_url":"https://api.github.com/users/meteormatt/events{/privacy}","received_events_url":"https://api.github.com/users/meteormatt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meteormatt/pkgcloud","description":"pkgcloud is a standard library for node.js that abstracts away differences among multiple cloud providers.","fork":true,"url":"https://api.github.com/repos/meteormatt/pkgcloud","forks_url":"https://api.github.com/repos/meteormatt/pkgcloud/forks","keys_url":"https://api.github.com/repos/meteormatt/pkgcloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meteormatt/pkgcloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meteormatt/pkgcloud/teams","hooks_url":"https://api.github.com/repos/meteormatt/pkgcloud/hooks","issue_events_url":"https://api.github.com/repos/meteormatt/pkgcloud/issues/events{/number}","events_url":"https://api.github.com/repos/meteormatt/pkgcloud/events","assignees_url":"https://api.github.com/repos/meteormatt/pkgcloud/assignees{/user}","branches_url":"https://api.github.com/repos/meteormatt/pkgcloud/branches{/branch}","tags_url":"https://api.github.com/repos/meteormatt/pkgcloud/tags","blobs_url":"https://api.github.com/repos/meteormatt/pkgcloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meteormatt/pkgcloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meteormatt/pkgcloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/meteormatt/pkgcloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meteormatt/pkgcloud/statuses/{sha}","languages_url":"https://api.github.com/repos/meteormatt/pkgcloud/languages","stargazers_url":"https://api.github.com/repos/meteormatt/pkgcloud/stargazers","contributors_url":"https://api.github.com/repos/meteormatt/pkgcloud/contributors","subscribers_url":"https://api.github.com/repos/meteormatt/pkgcloud/subscribers","subscription_url":"https://api.github.com/repos/meteormatt/pkgcloud/subscription","commits_url":"https://api.github.com/repos/meteormatt/pkgcloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/meteormatt/pkgcloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/meteormatt/pkgcloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/meteormatt/pkgcloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/meteormatt/pkgcloud/contents/{+path}","compare_url":"https://api.github.com/repos/meteormatt/pkgcloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meteormatt/pkgcloud/merges","archive_url":"https://api.github.com/repos/meteormatt/pkgcloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meteormatt/pkgcloud/downloads","issues_url":"https://api.github.com/repos/meteormatt/pkgcloud/issues{/number}","pulls_url":"https://api.github.com/repos/meteormatt/pkgcloud/pulls{/number}","milestones_url":"https://api.github.com/repos/meteormatt/pkgcloud/milestones{/number}","notifications_url":"https://api.github.com/repos/meteormatt/pkgcloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meteormatt/pkgcloud/labels{/name}","releases_url":"https://api.github.com/repos/meteormatt/pkgcloud/releases{/id}","created_at":"2014-12-05T06:37:11Z","updated_at":"2015-03-17T02:22:22Z","pushed_at":"2015-03-17T02:22:21Z","git_url":"git://github.com/meteormatt/pkgcloud.git","ssh_url":"git@github.com:meteormatt/pkgcloud.git","clone_url":"https://github.com/meteormatt/pkgcloud.git","svn_url":"https://github.com/meteormatt/pkgcloud","homepage":"http://github.com/pkgcloud/pkgcloud","size":13364,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"pkgcloud:master","ref":"master","sha":"1e1fd11e602ef0aa28a806c765bb1c040b057821","user":{"login":"pkgcloud","id":6363726,"avatar_url":"https://avatars.githubusercontent.com/u/6363726?v=3","gravatar_id":"","url":"https://api.github.com/users/pkgcloud","html_url":"https://github.com/pkgcloud","followers_url":"https://api.github.com/users/pkgcloud/followers","following_url":"https://api.github.com/users/pkgcloud/following{/other_user}","gists_url":"https://api.github.com/users/pkgcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/pkgcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkgcloud/subscriptions","organizations_url":"https://api.github.com/users/pkgcloud/orgs","repos_url":"https://api.github.com/users/pkgcloud/repos","events_url":"https://api.github.com/users/pkgcloud/events{/privacy}","received_events_url":"https://api.github.com/users/pkgcloud/received_events","type":"Organization","site_admin":false},"repo":{"id":2898669,"name":"pkgcloud","full_name":"pkgcloud/pkgcloud","owner":{"login":"pkgcloud","id":6363726,"avatar_url":"https://avatars.githubusercontent.com/u/6363726?v=3","gravatar_id":"","url":"https://api.github.com/users/pkgcloud","html_url":"https://github.com/pkgcloud","followers_url":"https://api.github.com/users/pkgcloud/followers","following_url":"https://api.github.com/users/pkgcloud/following{/other_user}","gists_url":"https://api.github.com/users/pkgcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/pkgcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkgcloud/subscriptions","organizations_url":"https://api.github.com/users/pkgcloud/orgs","repos_url":"https://api.github.com/users/pkgcloud/repos","events_url":"https://api.github.com/users/pkgcloud/events{/privacy}","received_events_url":"https://api.github.com/users/pkgcloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pkgcloud/pkgcloud","description":"pkgcloud is a standard library for node.js that abstracts away differences among multiple cloud providers.","fork":false,"url":"https://api.github.com/repos/pkgcloud/pkgcloud","forks_url":"https://api.github.com/repos/pkgcloud/pkgcloud/forks","keys_url":"https://api.github.com/repos/pkgcloud/pkgcloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pkgcloud/pkgcloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pkgcloud/pkgcloud/teams","hooks_url":"https://api.github.com/repos/pkgcloud/pkgcloud/hooks","issue_events_url":"https://api.github.com/repos/pkgcloud/pkgcloud/issues/events{/number}","events_url":"https://api.github.com/repos/pkgcloud/pkgcloud/events","assignees_url":"https://api.github.com/repos/pkgcloud/pkgcloud/assignees{/user}","branches_url":"https://api.github.com/repos/pkgcloud/pkgcloud/branches{/branch}","tags_url":"https://api.github.com/repos/pkgcloud/pkgcloud/tags","blobs_url":"https://api.github.com/repos/pkgcloud/pkgcloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pkgcloud/pkgcloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pkgcloud/pkgcloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/pkgcloud/pkgcloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pkgcloud/pkgcloud/statuses/{sha}","languages_url":"https://api.github.com/repos/pkgcloud/pkgcloud/languages","stargazers_url":"https://api.github.com/repos/pkgcloud/pkgcloud/stargazers","contributors_url":"https://api.github.com/repos/pkgcloud/pkgcloud/contributors","subscribers_url":"https://api.github.com/repos/pkgcloud/pkgcloud/subscribers","subscription_url":"https://api.github.com/repos/pkgcloud/pkgcloud/subscription","commits_url":"https://api.github.com/repos/pkgcloud/pkgcloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/pkgcloud/pkgcloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/pkgcloud/pkgcloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/pkgcloud/pkgcloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/pkgcloud/pkgcloud/contents/{+path}","compare_url":"https://api.github.com/repos/pkgcloud/pkgcloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pkgcloud/pkgcloud/merges","archive_url":"https://api.github.com/repos/pkgcloud/pkgcloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pkgcloud/pkgcloud/downloads","issues_url":"https://api.github.com/repos/pkgcloud/pkgcloud/issues{/number}","pulls_url":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls{/number}","milestones_url":"https://api.github.com/repos/pkgcloud/pkgcloud/milestones{/number}","notifications_url":"https://api.github.com/repos/pkgcloud/pkgcloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pkgcloud/pkgcloud/labels{/name}","releases_url":"https://api.github.com/repos/pkgcloud/pkgcloud/releases{/id}","created_at":"2011-12-02T13:39:31Z","updated_at":"2015-03-17T07:04:52Z","pushed_at":"2015-03-16T21:11:05Z","git_url":"git://github.com/pkgcloud/pkgcloud.git","ssh_url":"git@github.com:pkgcloud/pkgcloud.git","clone_url":"https://github.com/pkgcloud/pkgcloud.git","svn_url":"https://github.com/pkgcloud/pkgcloud","homepage":"http://github.com/pkgcloud/pkgcloud","size":15918,"stargazers_count":577,"watchers_count":577,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":159,"mirror_url":null,"open_issues_count":61,"forks":159,"open_issues":61,"watchers":577,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls/416"},"html":{"href":"https://github.com/pkgcloud/pkgcloud/pull/416"},"issue":{"href":"https://api.github.com/repos/pkgcloud/pkgcloud/issues/416"},"comments":{"href":"https://api.github.com/repos/pkgcloud/pkgcloud/issues/416/comments"},"review_comments":{"href":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls/416/comments"},"review_comment":{"href":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pkgcloud/pkgcloud/pulls/416/commits"},"statuses":{"href":"https://api.github.com/repos/pkgcloud/pkgcloud/statuses/624183bb8770bc9991a9918e87eadbe1fa87c4ab"}}}}