interface HttpClientInterface in HTTP Client Manager 8.2
Same name and namespace in other branches
- 8 src/HttpClientInterface.php \Drupal\http_client_manager\HttpClientInterface
Interface HttpClientInterface.
@package Drupal\http_client_manager
Hierarchy
- interface \Drupal\http_client_manager\HttpClientInterface
Expanded class hierarchy of HttpClientInterface
All classes that implement HttpClientInterface
1 file declares its use of HttpClientInterface
- ExampleController.php in modules/
http_client_manager_example/ src/ Controller/ ExampleController.php
File
- src/
HttpClientInterface.php, line 10
Namespace
Drupal\http_client_managerView source
interface HttpClientInterface {
/**
* Get Http Service Api data.
*
* @return array
* An array containing service api data.
*/
public function getApi();
/**
* Get service api commands.
*
* @return mixed
* The service api commands.
*/
public function getCommands();
/**
* Get single service api command by name.
*
* @param string $commandName
* The command name.
*
* @return \GuzzleHttp\Command\Guzzle\Operation
* The api command.
*/
public function getCommand($commandName);
/**
* Execute command call.
*
* @param string $commandName
* The Guzzle command name.
* @param array $params
* The Guzzle command parameters array.
*
* @return \GuzzleHttp\Command\ResultInterface
* The result of the executed command
*
* @throws \GuzzleHttp\Command\Exception\CommandException
*/
public function call($commandName, array $params = []);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HttpClientInterface:: |
public | function | Execute command call. | 1 |
HttpClientInterface:: |
public | function | Get Http Service Api data. | 1 |
HttpClientInterface:: |
public | function | Get single service api command by name. | 1 |
HttpClientInterface:: |
public | function | Get service api commands. | 1 |