AnalystContract.php
11 months ago
CacheContract.php
11 months ago
HttpClientContract.php
11 months ago
RequestContract.php
11 months ago
RequestorContract.php
11 months ago
TrackerContract.php
11 months ago
RequestorContract.php
45 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Analyst\Contracts; |
| 4 | |
| 5 | interface RequestorContract |
| 6 | { |
| 7 | /** |
| 8 | * Get request |
| 9 | * |
| 10 | * @param $url |
| 11 | * @param array $headers |
| 12 | * @return mixed |
| 13 | */ |
| 14 | public function get($url, $headers = []); |
| 15 | |
| 16 | /** |
| 17 | * Post request |
| 18 | * |
| 19 | * @param $url |
| 20 | * @param $body |
| 21 | * @param array $headers |
| 22 | * @return mixed |
| 23 | */ |
| 24 | public function post($url, $body = [], $headers = []); |
| 25 | |
| 26 | /** |
| 27 | * Put request |
| 28 | * |
| 29 | * @param $url |
| 30 | * @param $body |
| 31 | * @param array $headers |
| 32 | * @return mixed |
| 33 | */ |
| 34 | public function put($url, $body = [], $headers = []); |
| 35 | |
| 36 | /** |
| 37 | * Delete request |
| 38 | * |
| 39 | * @param $url |
| 40 | * @param array $headers |
| 41 | * @return mixed |
| 42 | */ |
| 43 | public function delete($url, $headers = []); |
| 44 | } |
| 45 |