Loading src/Tools/HttpRequestJson.php +4 −4 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ class HttpRequestJson */ public static function get($url, $httpHeaders = []) { $client = new Client(); $client = new Client(['timeout' => 30]); return $client->get($url, ['headers' => $httpHeaders]); } Loading @@ -40,7 +40,7 @@ class HttpRequestJson */ public static function post($url, $dataArray, $httpHeaders = []) { $client = new Client(); $client = new Client(['timeout' => 30]); return $client->post($url, ['headers' => $httpHeaders, 'json' => $dataArray]); } Loading @@ -53,7 +53,7 @@ class HttpRequestJson */ public static function put($url, $dataArray, $httpHeaders = []) { $client = new Client(); $client = new Client(['timeout' => 30]); return $client->put($url, ['headers' => $httpHeaders, 'json' => $dataArray]); } Loading @@ -65,7 +65,7 @@ class HttpRequestJson */ public static function delete($url, $httpHeaders = []) { $client = new Client(); $client = new Client(['timeout' => 30]); return $client->delete($url, ['headers' => $httpHeaders]); } Loading Loading
src/Tools/HttpRequestJson.php +4 −4 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ class HttpRequestJson */ public static function get($url, $httpHeaders = []) { $client = new Client(); $client = new Client(['timeout' => 30]); return $client->get($url, ['headers' => $httpHeaders]); } Loading @@ -40,7 +40,7 @@ class HttpRequestJson */ public static function post($url, $dataArray, $httpHeaders = []) { $client = new Client(); $client = new Client(['timeout' => 30]); return $client->post($url, ['headers' => $httpHeaders, 'json' => $dataArray]); } Loading @@ -53,7 +53,7 @@ class HttpRequestJson */ public static function put($url, $dataArray, $httpHeaders = []) { $client = new Client(); $client = new Client(['timeout' => 30]); return $client->put($url, ['headers' => $httpHeaders, 'json' => $dataArray]); } Loading @@ -65,7 +65,7 @@ class HttpRequestJson */ public static function delete($url, $httpHeaders = []) { $client = new Client(); $client = new Client(['timeout' => 30]); return $client->delete($url, ['headers' => $httpHeaders]); } Loading