PluginProbe
Packeta / 2.1
Packeta v2.1
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / src / Packetery / Core / Interfaces / IWebRequestClient.php

IWebRequestClient.php in Packeta 2.1, at src/Packetery/Core/Interfaces/IWebRequestClient.php

36 lines 680 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class IWebRequestClient
4 *
5 * @package Packetery
6 */
7
8 declare( strict_types=1 );
9
10 namespace Packetery\Core\Interfaces;
11
12 /**
13 * Class IWebRequestClient
14 *
15 * @package Packetery
16 */
17 interface IWebRequestClient {
18 /**
19 * Accepts parameters in WP format.
20 *
21 * @param string $url Target URL.
22 * @param array<string, mixed> $options Options.
23 */
24 public function post( string $url, array $options ): string;
25
26 /**
27 * Accepts parameters in WP format.
28 *
29 * @param string $url Target url.
30 * @param array<string, mixed> $options Options.
31 *
32 * @return string
33 */
34 public function get( string $url, array $options ): string;
35 }
36