Cookie
2 years ago
Exception
2 years ago
Handler
2 years ago
BodySummarizer.php
2 years ago
BodySummarizerInterface.php
2 years ago
Client.php
2 years ago
ClientInterface.php
2 years ago
ClientTrait.php
2 years ago
HandlerStack.php
2 years ago
MessageFormatter.php
2 years ago
MessageFormatterInterface.php
2 years ago
Middleware.php
2 years ago
Pool.php
2 years ago
PrepareBodyMiddleware.php
2 years ago
RedirectMiddleware.php
2 years ago
RequestOptions.php
2 years ago
RetryMiddleware.php
2 years ago
TransferStats.php
2 years ago
Utils.php
2 years ago
functions.php
2 years ago
functions_include.php
2 years ago
ClientInterface.php
79 lines
| 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 |