Cookie
3 years ago
Exception
3 years ago
Handler
3 years ago
Client.php
3 years ago
ClientInterface.php
3 years ago
HandlerStack.php
3 years ago
MessageFormatter.php
3 years ago
Middleware.php
3 years ago
Pool.php
3 years ago
PrepareBodyMiddleware.php
3 years ago
RedirectMiddleware.php
3 years ago
RequestOptions.php
3 years ago
RetryMiddleware.php
3 years ago
TransferStats.php
3 years ago
UriTemplate.php
3 years ago
Utils.php
3 years ago
functions.php
3 years ago
functions_include.php
3 years ago
ClientInterface.php
83 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPMailSMTP\Vendor\GuzzleHttp; |
| 4 | |
| 5 | use WPMailSMTP\Vendor\GuzzleHttp\Exception\GuzzleException; |
| 6 | use WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface; |
| 7 | use WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface; |
| 8 | use WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface; |
| 9 | use WPMailSMTP\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.5'; |
| 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(\WPMailSMTP\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(\WPMailSMTP\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 |