Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6093062
ClientInterface.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
ClientInterface.php
View Options
<?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
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 6 2026, 00:03 (6 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b5/40/6efdcfd7a8c4d85e91677eba2b6d
Default Alt Text
ClientInterface.php (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment