PluginProbe ʕ •ᴥ•ʔ
Backup Migration / 2.0.0
Backup Migration v2.0.0
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 / Http / DummyHttpClient.php
backup-backup / analyst / src / Http Last commit date
Requests 8 months ago CurlHttpClient.php 8 months ago DummyHttpClient.php 8 months ago WordPressHttpClient.php 8 months ago
DummyHttpClient.php
34 lines
1 <?php
2
3 namespace Analyst\Http;
4
5 use Analyst\ApiResponse;
6 use Analyst\Contracts\HttpClientContract;
7
8 class DummyHttpClient implements HttpClientContract
9 {
10 /**
11 * Make an http request
12 *
13 * @param $method
14 * @param $url
15 * @param $body
16 * @param $headers
17 * @return ApiResponse
18 */
19 public function request($method, $url, $body, $headers)
20 {
21 return new ApiResponse('Dummy response', 200, []);
22 }
23
24 /**
25 * Must return `true` if client is supported
26 *
27 * @return bool
28 */
29 public static function hasSupport()
30 {
31 return true;
32 }
33 }
34