PluginProbe
Metricool – Social media and site statistics / 2.1.1
Metricool – Social media and site statistics v2.1.1
2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
metricool / vendor / _scoped / guzzlehttp / guzzle / src / ClientInterface.php

ClientInterface.php in Metricool – Social media and site statistics 2.1.1, at vendor/_scoped/guzzlehttp/guzzle/src/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 Metricool\Vendor\GuzzleHttp;
4
5 use Metricool\Vendor\GuzzleHttp\Exception\GuzzleException;
6 use Metricool\Vendor\GuzzleHttp\Promise\PromiseInterface;
7 use Metricool\Vendor\Psr\Http\Message\RequestInterface;
8 use Metricool\Vendor\Psr\Http\Message\ResponseInterface;
9 use Metricool\Vendor\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