interface ClientInterface in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/guzzlehttp/guzzle/src/ClientInterface.php \GuzzleHttp\ClientInterface
- 8.0 vendor/zendframework/zend-feed/src/Reader/Http/ClientInterface.php \Zend\Feed\Reader\Http\ClientInterface
Same name and namespace in other branches
- 8 vendor/guzzlehttp/guzzle/src/ClientInterface.php \GuzzleHttp\ClientInterface
Client interface for sending HTTP requests.
Hierarchy
- interface \GuzzleHttp\ClientInterface
Expanded class hierarchy of ClientInterface
All classes that implement ClientInterface
4 files declare their use of ClientInterface
- Client.php in vendor/
fabpot/ goutte/ Goutte/ Client.php - FileEntityNormalizer.php in core/
modules/ hal/ src/ Normalizer/ FileEntityNormalizer.php - Contains \Drupal\hal\Normalizer\FileEntityNormalizer.
- OpmlFeedAdd.php in core/
modules/ aggregator/ src/ Form/ OpmlFeedAdd.php - Contains \Drupal\aggregator\Form\OpmlFeedAdd.
- UpdateFetcher.php in core/
modules/ update/ src/ UpdateFetcher.php - Contains \Drupal\update\UpdateFetcher.
File
- vendor/
guzzlehttp/ guzzle/ src/ ClientInterface.php, line 13
Namespace
GuzzleHttpView source
interface ClientInterface {
const VERSION = '6.1.0';
/**
* 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.
*
* @return ResponseInterface
* @throws GuzzleException
*/
public function send(RequestInterface $request, array $options = []);
/**
* 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.
*
* @return PromiseInterface
*/
public function sendAsync(RequestInterface $request, array $options = []);
/**
* 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.
*
* @return ResponseInterface
* @throws GuzzleException
*/
public function request($method, $uri, array $options = []);
/**
* 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.
*
* @return PromiseInterface
*/
public function requestAsync($method, $uri, array $options = []);
/**
* 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
*/
public function getConfig($option = null);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ClientInterface:: |
public | function | Get a client configuration option. | 1 |
ClientInterface:: |
public | function | Create and send an HTTP request. | 1 |
ClientInterface:: |
public | function | Create and send an asynchronous HTTP request. | 1 |
ClientInterface:: |
public | function | Send an HTTP request. | 1 |
ClientInterface:: |
public | function | Asynchronously send an HTTP request. | 1 |
ClientInterface:: |
constant |