PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
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 28.5, at vendor_prefixed/guzzlehttp/guzzle/src/ClientInterface.php

79 lines 3.1 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 * 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(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options = []) : \YoastSEO_Vendor\Psr\Http\Message\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(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options = []) : \YoastSEO_Vendor\GuzzleHttp\Promise\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 = []) : \YoastSEO_Vendor\Psr\Http\Message\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 = []) : \YoastSEO_Vendor\GuzzleHttp\Promise\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