1 | <?php |
||
16 | class JCRequest implements iJCRequest |
||
17 | { |
||
18 | public static function request($method, $url, $options) |
||
22 | |||
23 | /** |
||
24 | * @param $url |
||
25 | * @param array $headers |
||
26 | * @param array $params |
||
27 | * @param array $options |
||
28 | * @return JCResponse |
||
29 | */ |
||
30 | public static function get($url, $params = [], $headers = [], $options = []) |
||
36 | |||
37 | public static function post($url, $params = [], $headers = [], $options = []) |
||
44 | |||
45 | public static function put($url, $params, $headers, $options) |
||
49 | |||
50 | public static function patch($url, $params, $headers, $options) |
||
54 | |||
55 | public static function head($url, $params, $headers, $options) |
||
59 | |||
60 | public static function delete($url, $params, $headers, $options) |
||
64 | |||
65 | |||
66 | /** |
||
67 | * @param string $url |
||
68 | * @param array $params |
||
69 | * @return string |
||
70 | */ |
||
71 | protected static function manipulateUrl($url, $params = []) |
||
79 | } |