<?php namespace GuzzleHttp; use GuzzleHttp\Exception\GuzzleException; use GuzzleHttp\Promise\PromiseInterface; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\UriInterface; /** * Client interface for sending HTTP requests. */ interface ClientInterface { /** * The Guzzle major version. */ public const MAJOR_VERSION = 7; /** * Send an HTTP request. * * @param RequestInterface $request Request to send * @param array $options Request options to apply to the given * request and to the transfer. * * @throws GuzzleException */ public function send(RequestInterface $request, array $options = []): ResponseInterface; /** * Asynchronously send an HTTP request. * * @param RequestInterface $request Request to send * @param array $options Request options to apply to the given * request and to the transfer. */ public function sendAsync(RequestInterface $request, array $options = []): PromiseInterface; /** * Create and send an HTTP request. * * Use an absolute path to override the base path of the client, or a * relative path to append to the base path of the client. The URL can * contain the query string as well. * * @param string $method HTTP method. * @param string|UriInterface $uri URI object or string. * @param array $options Request options to apply. * * @throws GuzzleException */ public function request(string $method, $uri, array $options = []): ResponseInterface; /** * Create and send an asynchronous HTTP request. * * Use an absolute path to override the base path of the client, or a * relative path to append to the base path of the client. The URL can * contain the query string as well. Use an array to provide a URL * template and additional variables to use in the URL template expansion. * * @param string $method HTTP method * @param string|UriInterface $uri URI object or string. * @param array $options Request options to apply. */ public function requestAsync(string $method, $uri, array $options = []): PromiseInterface; /** * Get a client configuration option. * * These options include default request options of the client, a "handler" * (if utilized by the concrete client), and a "base_uri" if utilized by * the concrete client. * * @param string|null $option The config option to retrieve. * * @return mixed * * @deprecated ClientInterface::getConfig will be removed in guzzlehttp/guzzle:8.0. */ public function getConfig(?string $option = null); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Cookie | Folder | 0755 |
|
|
Exception | Folder | 0755 |
|
|
Handler | Folder | 0755 |
|
|
BodySummarizer.php | File | 631 B | 0644 |
|
BodySummarizerInterface.php | File | 233 B | 0644 |
|
Client.php | File | 17.94 KB | 0644 |
|
ClientInterface.php | File | 2.83 KB | 0644 |
|
ClientTrait.php | File | 8.79 KB | 0644 |
|
HandlerStack.php | File | 8.52 KB | 0644 |
|
MessageFormatter.php | File | 7.63 KB | 0644 |
|
MessageFormatterInterface.php | File | 561 B | 0644 |
|
Middleware.php | File | 10.9 KB | 0644 |
|
Pool.php | File | 4.61 KB | 0644 |
|
PrepareBodyMiddleware.php | File | 3.07 KB | 0644 |
|
RedirectMiddleware.php | File | 7.96 KB | 0644 |
|
RequestOptions.php | File | 10.32 KB | 0644 |
|
RetryMiddleware.php | File | 3.53 KB | 0644 |
|
TransferStats.php | File | 3.11 KB | 0644 |
|
Utils.php | File | 12.79 KB | 0644 |
|
functions.php | File | 5.56 KB | 0644 |
|
functions_include.php | File | 162 B | 0644 |
|