{"action":"created","comment":{"url":"https://api.github.com/repos/php-http/documentation/pulls/comments/50961641","id":50961641,"diff_hunk":"@@ -1,2 +1,72 @@\n cURL Client\n ===========\n+\n+This client uses `cURL PHP extension <http://php.net/curl>`_.\n+\n+Installation\n+------------\n+\n+To install the cURL client, run:\n+\n+.. code-block:: bash\n+\n+    $ composer require php-http/curl-client\n+\n+Usage\n+-----\n+\n+The cURL client needs a :ref:`message <message-factory>` and a :ref:`stream <message-factory>`\n+factory in order to to work::\n+\n+    use Http\\Client\\Curl\\Client;\n+\n+    $client = new Client($messageFactory, $streamFactory);\n+\n+Using `php-http/message <https://packagist.org/packages/php-http/message>`_::\n+\n+    use Http\\Client\\Curl\\Client;\n+    use Http\\Message\\MessageFactory\\DiactorosMessageFactory;\n+    use Http\\Message\\StreamFactory\\DiactorosStreamFactory;\n+\n+    $client = new Client(new DiactorosMessageFactory(), new DiactorosStreamFactory());\n+\n+Using `php-http/discovery <https://packagist.org/packages/php-http/discovery>`_::\n+\n+    use Http\\Client\\Curl\\Client;\n+    use Http\\Discovery\\MessageFactoryDiscovery;\n+    use Http\\Discovery\\StreamFactoryDiscovery;\n+\n+    $client = new Client(MessageFactoryDiscovery::find(), StreamFactoryDiscovery::find());\n+\n+Configuring client\n+------------------\n+\n+You can use `cURL options <http://php.net/curl_setopt>`_ to configure Client::\n+\n+    use Http\\Client\\Curl\\Client;\n+    use Http\\Discovery\\MessageFactoryDiscovery;\n+    use Http\\Discovery\\StreamFactoryDiscovery;\n+\n+    $options = [\n+        CURLOPT_CONNECTTIMEOUT => 10, // The number of seconds to wait while trying to connect.\n+        CURLOPT_SSL_VERIFYPEER => false // Stop cURL from verifying the peer's certificate\n+    ];\n+    $client = new Client(MessageFactoryDiscovery::find(), StreamFactoryDiscovery::find(), $options);\n+\n+These options can not be used:","path":"clients/curl-client.rst","position":56,"original_position":56,"commit_id":"64a4221c6c142f3bfd891789287ceb5d660b239a","original_commit_id":"64a4221c6c142f3bfd891789287ceb5d660b239a","user":{"login":"sagikazarmark","id":1226384,"avatar_url":"https://avatars.githubusercontent.com/u/1226384?v=3","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"body":"s/can not/cannot","created_at":"2016-01-27T09:56:06Z","updated_at":"2016-01-27T09:56:06Z","html_url":"https://github.com/php-http/documentation/pull/81#discussion_r50961641","pull_request_url":"https://api.github.com/repos/php-http/documentation/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/php-http/documentation/pulls/comments/50961641"},"html":{"href":"https://github.com/php-http/documentation/pull/81#discussion_r50961641"},"pull_request":{"href":"https://api.github.com/repos/php-http/documentation/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/php-http/documentation/pulls/81","id":57199201,"html_url":"https://github.com/php-http/documentation/pull/81","diff_url":"https://github.com/php-http/documentation/pull/81.diff","patch_url":"https://github.com/php-http/documentation/pull/81.patch","issue_url":"https://api.github.com/repos/php-http/documentation/issues/81","number":81,"state":"open","locked":false,"title":"Documentation for cURL client.","user":{"login":"mekras","id":192067,"avatar_url":"https://avatars.githubusercontent.com/u/192067?v=3","gravatar_id":"","url":"https://api.github.com/users/mekras","html_url":"https://github.com/mekras","followers_url":"https://api.github.com/users/mekras/followers","following_url":"https://api.github.com/users/mekras/following{/other_user}","gists_url":"https://api.github.com/users/mekras/gists{/gist_id}","starred_url":"https://api.github.com/users/mekras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mekras/subscriptions","organizations_url":"https://api.github.com/users/mekras/orgs","repos_url":"https://api.github.com/users/mekras/repos","events_url":"https://api.github.com/users/mekras/events{/privacy}","received_events_url":"https://api.github.com/users/mekras/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-26T11:30:40Z","updated_at":"2016-01-27T09:56:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eae0d137022dd0a01576508218daa4d57d7afece","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/php-http/documentation/pulls/81/commits","review_comments_url":"https://api.github.com/repos/php-http/documentation/pulls/81/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/81/comments","statuses_url":"https://api.github.com/repos/php-http/documentation/statuses/64a4221c6c142f3bfd891789287ceb5d660b239a","head":{"label":"mekras:curl-client","ref":"curl-client","sha":"64a4221c6c142f3bfd891789287ceb5d660b239a","user":{"login":"mekras","id":192067,"avatar_url":"https://avatars.githubusercontent.com/u/192067?v=3","gravatar_id":"","url":"https://api.github.com/users/mekras","html_url":"https://github.com/mekras","followers_url":"https://api.github.com/users/mekras/followers","following_url":"https://api.github.com/users/mekras/following{/other_user}","gists_url":"https://api.github.com/users/mekras/gists{/gist_id}","starred_url":"https://api.github.com/users/mekras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mekras/subscriptions","organizations_url":"https://api.github.com/users/mekras/orgs","repos_url":"https://api.github.com/users/mekras/repos","events_url":"https://api.github.com/users/mekras/events{/privacy}","received_events_url":"https://api.github.com/users/mekras/received_events","type":"User","site_admin":false},"repo":{"id":50421125,"name":"documentation","full_name":"mekras/documentation","owner":{"login":"mekras","id":192067,"avatar_url":"https://avatars.githubusercontent.com/u/192067?v=3","gravatar_id":"","url":"https://api.github.com/users/mekras","html_url":"https://github.com/mekras","followers_url":"https://api.github.com/users/mekras/followers","following_url":"https://api.github.com/users/mekras/following{/other_user}","gists_url":"https://api.github.com/users/mekras/gists{/gist_id}","starred_url":"https://api.github.com/users/mekras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mekras/subscriptions","organizations_url":"https://api.github.com/users/mekras/orgs","repos_url":"https://api.github.com/users/mekras/repos","events_url":"https://api.github.com/users/mekras/events{/privacy}","received_events_url":"https://api.github.com/users/mekras/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mekras/documentation","description":"Documentation for PHP-HTTP including HTTPlug","fork":true,"url":"https://api.github.com/repos/mekras/documentation","forks_url":"https://api.github.com/repos/mekras/documentation/forks","keys_url":"https://api.github.com/repos/mekras/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mekras/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mekras/documentation/teams","hooks_url":"https://api.github.com/repos/mekras/documentation/hooks","issue_events_url":"https://api.github.com/repos/mekras/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/mekras/documentation/events","assignees_url":"https://api.github.com/repos/mekras/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/mekras/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/mekras/documentation/tags","blobs_url":"https://api.github.com/repos/mekras/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mekras/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mekras/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/mekras/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mekras/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/mekras/documentation/languages","stargazers_url":"https://api.github.com/repos/mekras/documentation/stargazers","contributors_url":"https://api.github.com/repos/mekras/documentation/contributors","subscribers_url":"https://api.github.com/repos/mekras/documentation/subscribers","subscription_url":"https://api.github.com/repos/mekras/documentation/subscription","commits_url":"https://api.github.com/repos/mekras/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/mekras/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/mekras/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/mekras/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/mekras/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/mekras/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mekras/documentation/merges","archive_url":"https://api.github.com/repos/mekras/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mekras/documentation/downloads","issues_url":"https://api.github.com/repos/mekras/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/mekras/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/mekras/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/mekras/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mekras/documentation/labels{/name}","releases_url":"https://api.github.com/repos/mekras/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/mekras/documentation/deployments","created_at":"2016-01-26T10:19:44Z","updated_at":"2016-01-26T10:19:45Z","pushed_at":"2016-01-27T09:51:11Z","git_url":"git://github.com/mekras/documentation.git","ssh_url":"git@github.com:mekras/documentation.git","clone_url":"https://github.com/mekras/documentation.git","svn_url":"https://github.com/mekras/documentation","homepage":"http://docs.php-http.org","size":144,"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":"php-http:master","ref":"master","sha":"5bc51b4eb199c63ce0e6808cafc688cc59bea311","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":"Documentation for PHP-HTTP including HTTPlug","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}","deployments_url":"https://api.github.com/repos/php-http/documentation/deployments","created_at":"2015-06-08T11:44:22Z","updated_at":"2016-01-25T23:34:05Z","pushed_at":"2016-01-27T09:51:12Z","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://docs.php-http.org","size":160,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":24,"forks":7,"open_issues":24,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/php-http/documentation/pulls/81"},"html":{"href":"https://github.com/php-http/documentation/pull/81"},"issue":{"href":"https://api.github.com/repos/php-http/documentation/issues/81"},"comments":{"href":"https://api.github.com/repos/php-http/documentation/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/php-http/documentation/pulls/81/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/81/commits"},"statuses":{"href":"https://api.github.com/repos/php-http/documentation/statuses/64a4221c6c142f3bfd891789287ceb5d660b239a"}}}}