PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.4
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.4
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / vendor_prefixed / guzzlehttp / guzzle / src / ClientInterface.php

ClientInterface.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.4, at vendor_prefixed/guzzlehttp/guzzle/src/ClientInterface.php

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