PluginProbe
Media Cloud Sync / 1.3.11
Media Cloud Sync v1.3.11
1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 All 34 releases
media-cloud-sync / includes / sdk / s3 / GuzzleHttp / ClientInterface.php

ClientInterface.php in Media Cloud Sync 1.3.11, at includes/sdk/s3/GuzzleHttp/ClientInterface.php

79 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Dudlewebs\WPMCS\s3\GuzzleHttp;
4
5 use Dudlewebs\WPMCS\s3\GuzzleHttp\Exception\GuzzleException;
6 use Dudlewebs\WPMCS\s3\GuzzleHttp\Promise\PromiseInterface;
7 use Dudlewebs\WPMCS\s3\Psr\Http\Message\RequestInterface;
8 use Dudlewebs\WPMCS\s3\Psr\Http\Message\ResponseInterface;
9 use Dudlewebs\WPMCS\s3\Psr\Http\Message\UriInterface;
10 /**
11 * Client interface for sending HTTP requests.
12 */
13 interface ClientInterface
14 {
15 /**
16 * The Guzzle major version.
17 */
18 public const MAJOR_VERSION = 7;
19 /**
20 * Send an HTTP request.
21 *
22 * @param RequestInterface $request Request to send
23 * @param array $options Request options to apply to the given
24 * request and to the transfer.
25 *
26 * @throws GuzzleException
27 */
28 public function send(RequestInterface $request, array $options = []) : ResponseInterface;
29 /**
30 * Asynchronously send an HTTP request.
31 *
32 * @param RequestInterface $request Request to send
33 * @param array $options Request options to apply to the given
34 * request and to the transfer.
35 */
36 public function sendAsync(RequestInterface $request, array $options = []) : PromiseInterface;
37 /**
38 * Create and send an HTTP request.
39 *
40 * Use an absolute path to override the base path of the client, or a
41 * relative path to append to the base path of the client. The URL can
42 * contain the query string as well.
43 *
44 * @param string $method HTTP method.
45 * @param string|UriInterface $uri URI object or string.
46 * @param array $options Request options to apply.
47 *
48 * @throws GuzzleException
49 */
50 public function request(string $method, $uri, array $options = []) : ResponseInterface;
51 /**
52 * Create and send an asynchronous HTTP request.
53 *
54 * Use an absolute path to override the base path of the client, or a
55 * relative path to append to the base path of the client. The URL can
56 * contain the query string as well. Use an array to provide a URL
57 * template and additional variables to use in the URL template expansion.
58 *
59 * @param string $method HTTP method
60 * @param string|UriInterface $uri URI object or string.
61 * @param array $options Request options to apply.
62 */
63 public function requestAsync(string $method, $uri, array $options = []) : PromiseInterface;
64 /**
65 * Get a client configuration option.
66 *
67 * These options include default request options of the client, a "handler"
68 * (if utilized by the concrete client), and a "base_uri" if utilized by
69 * the concrete client.
70 *
71 * @param string|null $option The config option to retrieve.
72 *
73 * @return mixed
74 *
75 * @deprecated ClientInterface::getConfig will be removed in guzzlehttp/guzzle:8.0.
76 */
77 public function getConfig(?string $option = null);
78 }
79