HttpClientInterface.php in HTTP Client Manager 8.2
Same filename and directory in other branches
Namespace
Drupal\http_client_managerFile
src/HttpClientInterface.phpView source
<?php
namespace Drupal\http_client_manager;
/**
* Interface HttpClientInterface.
*
* @package Drupal\http_client_manager
*/
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 = []);
}
Interfaces
Name | Description |
---|---|
HttpClientInterface | Interface HttpClientInterface. |