{"action":"created","comment":{"url":"https://api.github.com/repos/php-http/documentation/pulls/comments/44230678","id":44230678,"diff_hunk":"@@ -5,22 +5,39 @@ Httplug is an abstraction for HTTP clients. There are two main use cases:\n 1. Usage in a project\n 2. Usage in a reusable package\n \n-In both cases, the client provides a `sendRequest` method to send a PSR-7 `RequestInterface` and returns a PSR-7 `ResponseInterface` or throws an exception that implements `Http\\Client\\Exception`.\n+In both cases, the client provides a `sendRequest` method to send a PSR-7 `RequestInterface` and returns a PSR-7 `ResponseInterface`\n+or throws an exception that implements `Http\\Client\\Exception`.\n+\n+There is also the HttpAsyncClient, available in [php-http/httplug-async](https://packagist.org/packages/php-http/httplug-async), which provides the `sendAsyncRequest` method to send a request asynchronously and returns a `Http\\Client\\Promise`.","path":"docs/httplug.md","position":8,"original_position":8,"commit_id":"5c714c77c058c9568344c83cfeb95b4d9b869dee","original_commit_id":"af0befb50d10f2d61601e7039735e553fa2c3377","user":{"login":"dbu","id":76576,"avatar_url":"https://avatars.githubusercontent.com/u/76576?v=3","gravatar_id":"","url":"https://api.github.com/users/dbu","html_url":"https://github.com/dbu","followers_url":"https://api.github.com/users/dbu/followers","following_url":"https://api.github.com/users/dbu/following{/other_user}","gists_url":"https://api.github.com/users/dbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbu/subscriptions","organizations_url":"https://api.github.com/users/dbu/orgs","repos_url":"https://api.github.com/users/dbu/repos","events_url":"https://api.github.com/users/dbu/events{/privacy}","received_events_url":"https://api.github.com/users/dbu/received_events","type":"User","site_admin":false},"body":"the one based on our own Promise interface and the future one based on a PSR.","created_at":"2015-11-08T21:12:53Z","updated_at":"2015-11-08T21:12:53Z","html_url":"https://github.com/php-http/documentation/pull/21#discussion_r44230678","pull_request_url":"https://api.github.com/repos/php-http/documentation/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/php-http/documentation/pulls/comments/44230678"},"html":{"href":"https://github.com/php-http/documentation/pull/21#discussion_r44230678"},"pull_request":{"href":"https://api.github.com/repos/php-http/documentation/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/php-http/documentation/pulls/21","id":49354325,"html_url":"https://github.com/php-http/documentation/pull/21","diff_url":"https://github.com/php-http/documentation/pull/21.diff","patch_url":"https://github.com/php-http/documentation/pull/21.patch","issue_url":"https://api.github.com/repos/php-http/documentation/issues/21","number":21,"state":"open","locked":false,"title":"Add documentation for async client","user":{"login":"joelwurtz","id":90466,"avatar_url":"https://avatars.githubusercontent.com/u/90466?v=3","gravatar_id":"","url":"https://api.github.com/users/joelwurtz","html_url":"https://github.com/joelwurtz","followers_url":"https://api.github.com/users/joelwurtz/followers","following_url":"https://api.github.com/users/joelwurtz/following{/other_user}","gists_url":"https://api.github.com/users/joelwurtz/gists{/gist_id}","starred_url":"https://api.github.com/users/joelwurtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelwurtz/subscriptions","organizations_url":"https://api.github.com/users/joelwurtz/orgs","repos_url":"https://api.github.com/users/joelwurtz/repos","events_url":"https://api.github.com/users/joelwurtz/events{/privacy}","received_events_url":"https://api.github.com/users/joelwurtz/received_events","type":"User","site_admin":false},"body":"Related to https://github.com/php-http/httplug/pull/77","created_at":"2015-10-31T17:26:23Z","updated_at":"2015-11-08T21:12:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa9207cd67bc3487bab6dd9b3ed3e15e220f67d2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/php-http/documentation/pulls/21/commits","review_comments_url":"https://api.github.com/repos/php-http/documentation/pulls/21/comments","review_comment_url":"https://api.github.com/repos/php-http/documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/php-http/documentation/issues/21/comments","statuses_url":"https://api.github.com/repos/php-http/documentation/statuses/5c714c77c058c9568344c83cfeb95b4d9b869dee","head":{"label":"joelwurtz:feature/async","ref":"feature/async","sha":"5c714c77c058c9568344c83cfeb95b4d9b869dee","user":{"login":"joelwurtz","id":90466,"avatar_url":"https://avatars.githubusercontent.com/u/90466?v=3","gravatar_id":"","url":"https://api.github.com/users/joelwurtz","html_url":"https://github.com/joelwurtz","followers_url":"https://api.github.com/users/joelwurtz/followers","following_url":"https://api.github.com/users/joelwurtz/following{/other_user}","gists_url":"https://api.github.com/users/joelwurtz/gists{/gist_id}","starred_url":"https://api.github.com/users/joelwurtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelwurtz/subscriptions","organizations_url":"https://api.github.com/users/joelwurtz/orgs","repos_url":"https://api.github.com/users/joelwurtz/repos","events_url":"https://api.github.com/users/joelwurtz/events{/privacy}","received_events_url":"https://api.github.com/users/joelwurtz/received_events","type":"User","site_admin":false},"repo":{"id":45307103,"name":"documentation","full_name":"joelwurtz/documentation","owner":{"login":"joelwurtz","id":90466,"avatar_url":"https://avatars.githubusercontent.com/u/90466?v=3","gravatar_id":"","url":"https://api.github.com/users/joelwurtz","html_url":"https://github.com/joelwurtz","followers_url":"https://api.github.com/users/joelwurtz/followers","following_url":"https://api.github.com/users/joelwurtz/following{/other_user}","gists_url":"https://api.github.com/users/joelwurtz/gists{/gist_id}","starred_url":"https://api.github.com/users/joelwurtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelwurtz/subscriptions","organizations_url":"https://api.github.com/users/joelwurtz/orgs","repos_url":"https://api.github.com/users/joelwurtz/repos","events_url":"https://api.github.com/users/joelwurtz/events{/privacy}","received_events_url":"https://api.github.com/users/joelwurtz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joelwurtz/documentation","description":"This is the documentation repository of the HTTP Adapter software components","fork":true,"url":"https://api.github.com/repos/joelwurtz/documentation","forks_url":"https://api.github.com/repos/joelwurtz/documentation/forks","keys_url":"https://api.github.com/repos/joelwurtz/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joelwurtz/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joelwurtz/documentation/teams","hooks_url":"https://api.github.com/repos/joelwurtz/documentation/hooks","issue_events_url":"https://api.github.com/repos/joelwurtz/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/joelwurtz/documentation/events","assignees_url":"https://api.github.com/repos/joelwurtz/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/joelwurtz/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/joelwurtz/documentation/tags","blobs_url":"https://api.github.com/repos/joelwurtz/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joelwurtz/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joelwurtz/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/joelwurtz/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joelwurtz/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/joelwurtz/documentation/languages","stargazers_url":"https://api.github.com/repos/joelwurtz/documentation/stargazers","contributors_url":"https://api.github.com/repos/joelwurtz/documentation/contributors","subscribers_url":"https://api.github.com/repos/joelwurtz/documentation/subscribers","subscription_url":"https://api.github.com/repos/joelwurtz/documentation/subscription","commits_url":"https://api.github.com/repos/joelwurtz/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/joelwurtz/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/joelwurtz/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/joelwurtz/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/joelwurtz/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/joelwurtz/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joelwurtz/documentation/merges","archive_url":"https://api.github.com/repos/joelwurtz/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joelwurtz/documentation/downloads","issues_url":"https://api.github.com/repos/joelwurtz/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/joelwurtz/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/joelwurtz/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/joelwurtz/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joelwurtz/documentation/labels{/name}","releases_url":"https://api.github.com/repos/joelwurtz/documentation/releases{/id}","created_at":"2015-10-31T15:34:04Z","updated_at":"2015-10-23T17:23:40Z","pushed_at":"2015-11-06T21:20:36Z","git_url":"git://github.com/joelwurtz/documentation.git","ssh_url":"git@github.com:joelwurtz/documentation.git","clone_url":"https://github.com/joelwurtz/documentation.git","svn_url":"https://github.com/joelwurtz/documentation","homepage":"http://php-http.org","size":127,"stargazers_count":0,"watchers_count":0,"language":null,"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":"php-http:master","ref":"master","sha":"e78c12b0adc5679fd04df41218e714ce3eead795","user":{"login":"php-http","id":12104859,"avatar_url":"https://avatars.githubusercontent.com/u/12104859?v=3","gravatar_id":"","url":"https://api.github.com/users/php-http","html_url":"https://github.com/php-http","followers_url":"https://api.github.com/users/php-http/followers","following_url":"https://api.github.com/users/php-http/following{/other_user}","gists_url":"https://api.github.com/users/php-http/gists{/gist_id}","starred_url":"https://api.github.com/users/php-http/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php-http/subscriptions","organizations_url":"https://api.github.com/users/php-http/orgs","repos_url":"https://api.github.com/users/php-http/repos","events_url":"https://api.github.com/users/php-http/events{/privacy}","received_events_url":"https://api.github.com/users/php-http/received_events","type":"Organization","site_admin":false},"repo":{"id":37063526,"name":"documentation","full_name":"php-http/documentation","owner":{"login":"php-http","id":12104859,"avatar_url":"https://avatars.githubusercontent.com/u/12104859?v=3","gravatar_id":"","url":"https://api.github.com/users/php-http","html_url":"https://github.com/php-http","followers_url":"https://api.github.com/users/php-http/followers","following_url":"https://api.github.com/users/php-http/following{/other_user}","gists_url":"https://api.github.com/users/php-http/gists{/gist_id}","starred_url":"https://api.github.com/users/php-http/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php-http/subscriptions","organizations_url":"https://api.github.com/users/php-http/orgs","repos_url":"https://api.github.com/users/php-http/repos","events_url":"https://api.github.com/users/php-http/events{/privacy}","received_events_url":"https://api.github.com/users/php-http/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/php-http/documentation","description":"This is the documentation repository of the HTTP Adapter software components","fork":false,"url":"https://api.github.com/repos/php-http/documentation","forks_url":"https://api.github.com/repos/php-http/documentation/forks","keys_url":"https://api.github.com/repos/php-http/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/php-http/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/php-http/documentation/teams","hooks_url":"https://api.github.com/repos/php-http/documentation/hooks","issue_events_url":"https://api.github.com/repos/php-http/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/php-http/documentation/events","assignees_url":"https://api.github.com/repos/php-http/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/php-http/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/php-http/documentation/tags","blobs_url":"https://api.github.com/repos/php-http/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/php-http/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/php-http/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/php-http/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/php-http/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/php-http/documentation/languages","stargazers_url":"https://api.github.com/repos/php-http/documentation/stargazers","contributors_url":"https://api.github.com/repos/php-http/documentation/contributors","subscribers_url":"https://api.github.com/repos/php-http/documentation/subscribers","subscription_url":"https://api.github.com/repos/php-http/documentation/subscription","commits_url":"https://api.github.com/repos/php-http/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/php-http/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/php-http/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/php-http/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/php-http/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/php-http/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/php-http/documentation/merges","archive_url":"https://api.github.com/repos/php-http/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/php-http/documentation/downloads","issues_url":"https://api.github.com/repos/php-http/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/php-http/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/php-http/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/php-http/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/php-http/documentation/labels{/name}","releases_url":"https://api.github.com/repos/php-http/documentation/releases{/id}","created_at":"2015-06-08T11:44:22Z","updated_at":"2015-10-23T17:23:40Z","pushed_at":"2015-11-06T21:20:37Z","git_url":"git://github.com/php-http/documentation.git","ssh_url":"git@github.com:php-http/documentation.git","clone_url":"https://github.com/php-http/documentation.git","svn_url":"https://github.com/php-http/documentation","homepage":"http://php-http.org","size":399,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/php-http/documentation/pulls/21"},"html":{"href":"https://github.com/php-http/documentation/pull/21"},"issue":{"href":"https://api.github.com/repos/php-http/documentation/issues/21"},"comments":{"href":"https://api.github.com/repos/php-http/documentation/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/php-http/documentation/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/php-http/documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/php-http/documentation/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/php-http/documentation/statuses/5c714c77c058c9568344c83cfeb95b4d9b869dee"}}}}