京东云

This commit is contained in:
“wanyongkang”
2024-05-28 17:04:50 +08:00
parent f644932afb
commit f3c7432100
672 changed files with 209344 additions and 6593 deletions

View File

@@ -1,5 +1,4 @@
<?php
namespace GuzzleHttp;
use GuzzleHttp\Exception\GuzzleException;
@@ -14,9 +13,9 @@ use Psr\Http\Message\UriInterface;
interface ClientInterface
{
/**
* The Guzzle major version.
* @deprecated Will be removed in Guzzle 7.0.0
*/
public const MAJOR_VERSION = 7;
const VERSION = '6.5.5';
/**
* Send an HTTP request.
@@ -25,9 +24,10 @@ interface ClientInterface
* @param array $options Request options to apply to the given
* request and to the transfer.
*
* @return ResponseInterface
* @throws GuzzleException
*/
public function send(RequestInterface $request, array $options = []): ResponseInterface;
public function send(RequestInterface $request, array $options = []);
/**
* Asynchronously send an HTTP request.
@@ -35,8 +35,10 @@ interface ClientInterface
* @param RequestInterface $request Request to send
* @param array $options Request options to apply to the given
* request and to the transfer.
*
* @return PromiseInterface
*/
public function sendAsync(RequestInterface $request, array $options = []): PromiseInterface;
public function sendAsync(RequestInterface $request, array $options = []);
/**
* Create and send an HTTP request.
@@ -49,9 +51,10 @@ interface ClientInterface
* @param string|UriInterface $uri URI object or string.
* @param array $options Request options to apply.
*
* @return ResponseInterface
* @throws GuzzleException
*/
public function request(string $method, $uri, array $options = []): ResponseInterface;
public function request($method, $uri, array $options = []);
/**
* Create and send an asynchronous HTTP request.
@@ -64,8 +67,10 @@ interface ClientInterface
* @param string $method HTTP method
* @param string|UriInterface $uri URI object or string.
* @param array $options Request options to apply.
*
* @return PromiseInterface
*/
public function requestAsync(string $method, $uri, array $options = []): PromiseInterface;
public function requestAsync($method, $uri, array $options = []);
/**
* Get a client configuration option.
@@ -77,8 +82,6 @@ interface ClientInterface
* @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);
public function getConfig($option = null);
}