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 / RequestorContract.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
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