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
HttpClientContract.php
26 lines
| 1 | <?php |
| 2 | namespace Analyst\Contracts; |
| 3 | |
| 4 | use Analyst\ApiResponse; |
| 5 | |
| 6 | interface HttpClientContract |
| 7 | { |
| 8 | /** |
| 9 | * Make an http request |
| 10 | * |
| 11 | * @param $method |
| 12 | * @param $url |
| 13 | * @param $body |
| 14 | * @param $headers |
| 15 | * @return ApiResponse |
| 16 | */ |
| 17 | public function request($method, $url, $body, $headers); |
| 18 | |
| 19 | /** |
| 20 | * Must return `true` if client is supported |
| 21 | * |
| 22 | * @return bool |
| 23 | */ |
| 24 | public static function hasSupport(); |
| 25 | } |
| 26 |