{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls/comments/41415097","id":41415097,"diff_hunk":"@@ -0,0 +1,43 @@\n+package com.puppetlabs.http.client.impl;\n+\n+import java.io.IOException;\n+import java.io.PipedInputStream;\n+\n+public class ExceptionInsertingPipedInputStream extends PipedInputStream {","path":"src/java/com/puppetlabs/http/client/impl/ExceptionInsertingPipedInputStream.java","position":6,"original_position":6,"commit_id":"ca5ad63179052c1cba540649e6e6520f9d6dce06","original_commit_id":"ca5ad63179052c1cba540649e6e6520f9d6dce06","user":{"login":"scottyw","id":3063979,"avatar_url":"https://avatars.githubusercontent.com/u/3063979?v=3","gravatar_id":"","url":"https://api.github.com/users/scottyw","html_url":"https://github.com/scottyw","followers_url":"https://api.github.com/users/scottyw/followers","following_url":"https://api.github.com/users/scottyw/following{/other_user}","gists_url":"https://api.github.com/users/scottyw/gists{/gist_id}","starred_url":"https://api.github.com/users/scottyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottyw/subscriptions","organizations_url":"https://api.github.com/users/scottyw/orgs","repos_url":"https://api.github.com/users/scottyw/repos","events_url":"https://api.github.com/users/scottyw/events{/privacy}","received_events_url":"https://api.github.com/users/scottyw/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2015-10-07T16:49:43Z","updated_at":"2015-10-07T16:49:43Z","html_url":"https://github.com/puppetlabs/clj-http-client/pull/42#discussion_r41415097","pull_request_url":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls/comments/41415097"},"html":{"href":"https://github.com/puppetlabs/clj-http-client/pull/42#discussion_r41415097"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls/42","id":46790092,"html_url":"https://github.com/puppetlabs/clj-http-client/pull/42","diff_url":"https://github.com/puppetlabs/clj-http-client/pull/42.diff","patch_url":"https://github.com/puppetlabs/clj-http-client/pull/42.patch","issue_url":"https://api.github.com/repos/puppetlabs/clj-http-client/issues/42","number":42,"state":"open","locked":false,"title":"(PE-11976) Add option to return response early and stream body asynchronously","user":{"login":"scottyw","id":3063979,"avatar_url":"https://avatars.githubusercontent.com/u/3063979?v=3","gravatar_id":"","url":"https://api.github.com/users/scottyw","html_url":"https://github.com/scottyw","followers_url":"https://api.github.com/users/scottyw/followers","following_url":"https://api.github.com/users/scottyw/following{/other_user}","gists_url":"https://api.github.com/users/scottyw/gists{/gist_id}","starred_url":"https://api.github.com/users/scottyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottyw/subscriptions","organizations_url":"https://api.github.com/users/scottyw/orgs","repos_url":"https://api.github.com/users/scottyw/repos","events_url":"https://api.github.com/users/scottyw/events{/privacy}","received_events_url":"https://api.github.com/users/scottyw/received_events","type":"User","site_admin":false},"body":"Adds a new :as option that uses Apache's AsyncConsumer to return the response as quickly as possible then asynchronously stream the response body using piped input/output streams.\r\n\r\nThis is Clojure support only at the moment.\r\n\r\n@cprice404 @rlinehan Hopefully this aligns reasonably with our discussions.\r\n\r\n@mruzicka @dmcpl If you guys have time, I'd appreciate your comments.\r\n\r\nThanks!","created_at":"2015-10-05T14:49:50Z","updated_at":"2015-10-07T16:49:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88ce7c3c6765be3a4753e71924d055d3c49f5349","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls/42/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls/42/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/clj-http-client/issues/42/comments","statuses_url":"https://api.github.com/repos/puppetlabs/clj-http-client/statuses/ca5ad63179052c1cba540649e6e6520f9d6dce06","head":{"label":"scottyw:clojure-unbuffered-stream","ref":"clojure-unbuffered-stream","sha":"ca5ad63179052c1cba540649e6e6520f9d6dce06","user":{"login":"scottyw","id":3063979,"avatar_url":"https://avatars.githubusercontent.com/u/3063979?v=3","gravatar_id":"","url":"https://api.github.com/users/scottyw","html_url":"https://github.com/scottyw","followers_url":"https://api.github.com/users/scottyw/followers","following_url":"https://api.github.com/users/scottyw/following{/other_user}","gists_url":"https://api.github.com/users/scottyw/gists{/gist_id}","starred_url":"https://api.github.com/users/scottyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottyw/subscriptions","organizations_url":"https://api.github.com/users/scottyw/orgs","repos_url":"https://api.github.com/users/scottyw/repos","events_url":"https://api.github.com/users/scottyw/events{/privacy}","received_events_url":"https://api.github.com/users/scottyw/received_events","type":"User","site_admin":false},"repo":{"id":37248104,"name":"clj-http-client","full_name":"scottyw/clj-http-client","owner":{"login":"scottyw","id":3063979,"avatar_url":"https://avatars.githubusercontent.com/u/3063979?v=3","gravatar_id":"","url":"https://api.github.com/users/scottyw","html_url":"https://github.com/scottyw","followers_url":"https://api.github.com/users/scottyw/followers","following_url":"https://api.github.com/users/scottyw/following{/other_user}","gists_url":"https://api.github.com/users/scottyw/gists{/gist_id}","starred_url":"https://api.github.com/users/scottyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottyw/subscriptions","organizations_url":"https://api.github.com/users/scottyw/orgs","repos_url":"https://api.github.com/users/scottyw/repos","events_url":"https://api.github.com/users/scottyw/events{/privacy}","received_events_url":"https://api.github.com/users/scottyw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scottyw/clj-http-client","description":"HTTP client library wrapping Apache HttpAsyncClient","fork":true,"url":"https://api.github.com/repos/scottyw/clj-http-client","forks_url":"https://api.github.com/repos/scottyw/clj-http-client/forks","keys_url":"https://api.github.com/repos/scottyw/clj-http-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scottyw/clj-http-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scottyw/clj-http-client/teams","hooks_url":"https://api.github.com/repos/scottyw/clj-http-client/hooks","issue_events_url":"https://api.github.com/repos/scottyw/clj-http-client/issues/events{/number}","events_url":"https://api.github.com/repos/scottyw/clj-http-client/events","assignees_url":"https://api.github.com/repos/scottyw/clj-http-client/assignees{/user}","branches_url":"https://api.github.com/repos/scottyw/clj-http-client/branches{/branch}","tags_url":"https://api.github.com/repos/scottyw/clj-http-client/tags","blobs_url":"https://api.github.com/repos/scottyw/clj-http-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scottyw/clj-http-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scottyw/clj-http-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/scottyw/clj-http-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scottyw/clj-http-client/statuses/{sha}","languages_url":"https://api.github.com/repos/scottyw/clj-http-client/languages","stargazers_url":"https://api.github.com/repos/scottyw/clj-http-client/stargazers","contributors_url":"https://api.github.com/repos/scottyw/clj-http-client/contributors","subscribers_url":"https://api.github.com/repos/scottyw/clj-http-client/subscribers","subscription_url":"https://api.github.com/repos/scottyw/clj-http-client/subscription","commits_url":"https://api.github.com/repos/scottyw/clj-http-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/scottyw/clj-http-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/scottyw/clj-http-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/scottyw/clj-http-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/scottyw/clj-http-client/contents/{+path}","compare_url":"https://api.github.com/repos/scottyw/clj-http-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scottyw/clj-http-client/merges","archive_url":"https://api.github.com/repos/scottyw/clj-http-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scottyw/clj-http-client/downloads","issues_url":"https://api.github.com/repos/scottyw/clj-http-client/issues{/number}","pulls_url":"https://api.github.com/repos/scottyw/clj-http-client/pulls{/number}","milestones_url":"https://api.github.com/repos/scottyw/clj-http-client/milestones{/number}","notifications_url":"https://api.github.com/repos/scottyw/clj-http-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scottyw/clj-http-client/labels{/name}","releases_url":"https://api.github.com/repos/scottyw/clj-http-client/releases{/id}","created_at":"2015-06-11T08:10:55Z","updated_at":"2015-06-11T08:10:55Z","pushed_at":"2015-10-05T14:39:48Z","git_url":"git://github.com/scottyw/clj-http-client.git","ssh_url":"git@github.com:scottyw/clj-http-client.git","clone_url":"https://github.com/scottyw/clj-http-client.git","svn_url":"https://github.com/scottyw/clj-http-client","homepage":"","size":427,"stargazers_count":0,"watchers_count":0,"language":"Clojure","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":"puppetlabs:master","ref":"master","sha":"99f9b840af5906915168a9f62bcc43244a1cb89c","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":17650370,"name":"clj-http-client","full_name":"puppetlabs/clj-http-client","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/clj-http-client","description":"HTTP client library wrapping Apache HttpAsyncClient","fork":false,"url":"https://api.github.com/repos/puppetlabs/clj-http-client","forks_url":"https://api.github.com/repos/puppetlabs/clj-http-client/forks","keys_url":"https://api.github.com/repos/puppetlabs/clj-http-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/clj-http-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/clj-http-client/teams","hooks_url":"https://api.github.com/repos/puppetlabs/clj-http-client/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/clj-http-client/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/clj-http-client/events","assignees_url":"https://api.github.com/repos/puppetlabs/clj-http-client/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/clj-http-client/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/clj-http-client/tags","blobs_url":"https://api.github.com/repos/puppetlabs/clj-http-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/clj-http-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/clj-http-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/clj-http-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/clj-http-client/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/clj-http-client/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/clj-http-client/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/clj-http-client/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/clj-http-client/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/clj-http-client/subscription","commits_url":"https://api.github.com/repos/puppetlabs/clj-http-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/clj-http-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/clj-http-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/clj-http-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/clj-http-client/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/clj-http-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/clj-http-client/merges","archive_url":"https://api.github.com/repos/puppetlabs/clj-http-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/clj-http-client/downloads","issues_url":"https://api.github.com/repos/puppetlabs/clj-http-client/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/clj-http-client/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/clj-http-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/clj-http-client/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/clj-http-client/releases{/id}","created_at":"2014-03-12T00:39:04Z","updated_at":"2015-08-01T21:05:46Z","pushed_at":"2015-10-05T14:49:50Z","git_url":"git://github.com/puppetlabs/clj-http-client.git","ssh_url":"git@github.com:puppetlabs/clj-http-client.git","clone_url":"https://github.com/puppetlabs/clj-http-client.git","svn_url":"https://github.com/puppetlabs/clj-http-client","homepage":"","size":861,"stargazers_count":2,"watchers_count":2,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":1,"forks":14,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls/42"},"html":{"href":"https://github.com/puppetlabs/clj-http-client/pull/42"},"issue":{"href":"https://api.github.com/repos/puppetlabs/clj-http-client/issues/42"},"comments":{"href":"https://api.github.com/repos/puppetlabs/clj-http-client/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/clj-http-client/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/clj-http-client/statuses/ca5ad63179052c1cba540649e6e6520f9d6dce06"}}}}