PluginProbe ʕ •ᴥ•ʔ
Backup Migration / 1.4.9
Backup Migration v1.4.9
2.1.6 2.1.5.2 trunk 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.6.1 1.4.7 1.4.8 1.4.9 1.4.9.1 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.5.1
backup-backup / analyst / src / Contracts / HttpClientContract.php
backup-backup / analyst / src / Contracts Last commit date
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