33namespace Github \HttpClient ;
44
55use Github \Exception \InvalidArgumentException ;
6+ use Guzzle \Http \Message \Response ;
67
78/**
89 * Performs requests on GitHub API. API documentation should be self-explanatory.
@@ -18,7 +19,7 @@ interface HttpClientInterface
1819 * @param array $parameters GET Parameters
1920 * @param array $headers Reconfigure the request headers for this call only
2021 *
21- * @return array Data
22+ * @return Response
2223 */
2324 public function get ($ path , array $ parameters = array (), array $ headers = array ());
2425
@@ -29,7 +30,7 @@ public function get($path, array $parameters = array(), array $headers = array()
2930 * @param mixed $body Request body
3031 * @param array $headers Reconfigure the request headers for this call only
3132 *
32- * @return array Data
33+ * @return Response
3334 */
3435 public function post ($ path , $ body = null , array $ headers = array ());
3536
@@ -41,7 +42,7 @@ public function post($path, $body = null, array $headers = array());
4142 * @param array $headers Reconfigure the request headers for this call only
4243 *
4344 * @internal param array $parameters Request body
44- * @return array Data
45+ * @return Response
4546 */
4647 public function patch ($ path , $ body = null , array $ headers = array ());
4748
@@ -52,7 +53,7 @@ public function patch($path, $body = null, array $headers = array());
5253 * @param mixed $body Request body
5354 * @param array $headers Reconfigure the request headers for this call only
5455 *
55- * @return array Data
56+ * @return Response
5657 */
5758 public function put ($ path , $ body , array $ headers = array ());
5859
@@ -63,7 +64,7 @@ public function put($path, $body, array $headers = array());
6364 * @param mixed $body Request body
6465 * @param array $headers Reconfigure the request headers for this call only
6566 *
66- * @return array Data
67+ * @return Response
6768 */
6869 public function delete ($ path , $ body = null , array $ headers = array ());
6970
@@ -76,7 +77,7 @@ public function delete($path, $body = null, array $headers = array());
7677 * @param string $httpMethod HTTP method to use
7778 * @param array $headers Request headers
7879 *
79- * @return array Data
80+ * @return Response
8081 */
8182 public function request ($ path , $ body , $ httpMethod = 'GET ' , array $ headers = array ());
8283
0 commit comments