@@ -86,44 +86,52 @@ public function disableSSLVerification()
8686 $ this ->ssl_verify_peer = false ;
8787 }
8888
89+
8990 /**
9091 * @param $route
9192 * @param array $params
9293 * @param array $headers
9394 * @return mixed
95+ * @throws HttpException
9496 */
9597 public function get ($ route , array $ params = array (), array $ headers = array ())
9698 {
9799 return $ this ->call ('GET ' , $ route , $ params , $ headers );
98100 }
99101
102+
100103 /**
101104 * @param $route
102105 * @param array $params
103106 * @param array $headers
104107 * @return mixed
108+ * @throws HttpException
105109 */
106110 public function post ($ route , array $ params = array (), array $ headers = array ())
107111 {
108112 return $ this ->call ('POST ' , $ route , $ params , $ headers );
109113 }
110114
115+
111116 /**
112117 * @param $route
113118 * @param array $params
114119 * @param array $headers
115120 * @return mixed
121+ * @throws HttpException
116122 */
117123 public function put ($ route , array $ params = array (), array $ headers = array ())
118124 {
119125 return $ this ->call ('PUT ' , $ route , $ params , $ headers );
120126 }
121127
128+
122129 /**
123130 * @param $route
124131 * @param array $params
125132 * @param array $headers
126133 * @return mixed
134+ * @throws HttpException
127135 */
128136 public function delete ($ route , array $ params = array (), array $ headers = array ())
129137 {
@@ -184,7 +192,7 @@ protected function call($http_method, $route, array $params = array(), array $he
184192
185193 $ this ->request ->setOption (CURLOPT_HTTPHEADER , $ headers );
186194
187- $ result = $ this ->request ->execute ();
195+ $ result = $ this ->request ->execute ();
188196 $ last_response = $ this ->request ->getInfo (CURLINFO_HTTP_CODE );
189197
190198 $ this ->request ->close ();
0 commit comments