@@ 49-55 (lines=7) @@ | ||
46 | ]); |
|
47 | } |
|
48 | ||
49 | public static function post($url, $params = null, $headers = [], $options = []) |
|
50 | { |
|
51 | return static::request(Method::POST, $url, [ |
|
52 | 'headers' => $headers, |
|
53 | 'params' => $params |
|
54 | ]); |
|
55 | } |
|
56 | ||
57 | public static function put($url, $params = null, $headers = [], $options = []) |
|
58 | { |
|
@@ 57-63 (lines=7) @@ | ||
54 | ]); |
|
55 | } |
|
56 | ||
57 | public static function put($url, $params = null, $headers = [], $options = []) |
|
58 | { |
|
59 | return static::request(Method::PUT, $url, [ |
|
60 | 'headers' => $headers, |
|
61 | 'params' => $params |
|
62 | ]); |
|
63 | } |
|
64 | ||
65 | public static function patch($url, $params = null, $headers = [], $options = []) |
|
66 | { |
|
@@ 65-71 (lines=7) @@ | ||
62 | ]); |
|
63 | } |
|
64 | ||
65 | public static function patch($url, $params = null, $headers = [], $options = []) |
|
66 | { |
|
67 | return static::request(Method::PATCH, $url, [ |
|
68 | 'headers' => $headers, |
|
69 | 'params' => $params |
|
70 | ]); |
|
71 | } |
|
72 | ||
73 | public static function delete($url, $params = null, $headers = [], $options = []) |
|
74 | { |
|
@@ 73-79 (lines=7) @@ | ||
70 | ]); |
|
71 | } |
|
72 | ||
73 | public static function delete($url, $params = null, $headers = [], $options = []) |
|
74 | { |
|
75 | return static::request(Method::DELETE, $url, [ |
|
76 | 'headers' => $headers, |
|
77 | 'params' => $params |
|
78 | ]); |
|
79 | } |
|
80 | ||
81 | public static function head($url, $params = null, $headers = [], $options = []) |
|
82 | { |