3
3
namespace Github \HttpClient ;
4
4
5
5
use Github \Exception \InvalidArgumentException ;
6
+ use Guzzle \Http \Message \Response ;
6
7
7
8
/**
8
9
* Performs requests on GitHub API. API documentation should be self-explanatory.
@@ -18,7 +19,7 @@ interface HttpClientInterface
18
19
* @param array $parameters GET Parameters
19
20
* @param array $headers Reconfigure the request headers for this call only
20
21
*
21
- * @return array Data
22
+ * @return Response
22
23
*/
23
24
public function get ($ path , array $ parameters = array (), array $ headers = array ());
24
25
@@ -29,7 +30,7 @@ public function get($path, array $parameters = array(), array $headers = array()
29
30
* @param mixed $body Request body
30
31
* @param array $headers Reconfigure the request headers for this call only
31
32
*
32
- * @return array Data
33
+ * @return Response
33
34
*/
34
35
public function post ($ path , $ body = null , array $ headers = array ());
35
36
@@ -41,7 +42,7 @@ public function post($path, $body = null, array $headers = array());
41
42
* @param array $headers Reconfigure the request headers for this call only
42
43
*
43
44
* @internal param array $parameters Request body
44
- * @return array Data
45
+ * @return Response
45
46
*/
46
47
public function patch ($ path , $ body = null , array $ headers = array ());
47
48
@@ -52,7 +53,7 @@ public function patch($path, $body = null, array $headers = array());
52
53
* @param mixed $body Request body
53
54
* @param array $headers Reconfigure the request headers for this call only
54
55
*
55
- * @return array Data
56
+ * @return Response
56
57
*/
57
58
public function put ($ path , $ body , array $ headers = array ());
58
59
@@ -63,7 +64,7 @@ public function put($path, $body, array $headers = array());
63
64
* @param mixed $body Request body
64
65
* @param array $headers Reconfigure the request headers for this call only
65
66
*
66
- * @return array Data
67
+ * @return Response
67
68
*/
68
69
public function delete ($ path , $ body = null , array $ headers = array ());
69
70
@@ -76,7 +77,7 @@ public function delete($path, $body = null, array $headers = array());
76
77
* @param string $httpMethod HTTP method to use
77
78
* @param array $headers Request headers
78
79
*
79
- * @return array Data
80
+ * @return Response
80
81
*/
81
82
public function request ($ path , $ body , $ httpMethod = 'GET ' , array $ headers = array ());
82
83
0 commit comments