interface HttpServiceApiWrapperInterface in HTTP Client Manager 8.2
Interface HttpServiceApiWrapperInterface.
@package Drupal\http_client_manager\Plugin\HttpServiceWrappers
Hierarchy
- interface \Drupal\http_client_manager\Plugin\HttpServiceApiWrapper\HttpServiceApiWrapperInterface
Expanded class hierarchy of HttpServiceApiWrapperInterface
All classes that implement HttpServiceApiWrapperInterface
3 files declare their use of HttpServiceApiWrapperInterface
- ExampleController.php in modules/
http_client_manager_example/ src/ Controller/ ExampleController.php - HttpServiceApiWrapperFactory.php in src/
HttpServiceApiWrapperFactory.php - HttpServiceApiWrapperFactoryInterface.php in src/
HttpServiceApiWrapperFactoryInterface.php
File
- src/
Plugin/ HttpServiceApiWrapper/ HttpServiceApiWrapperInterface.php, line 10
Namespace
Drupal\http_client_manager\Plugin\HttpServiceApiWrapperView source
interface HttpServiceApiWrapperInterface {
/**
* Get HTTP Client.
*
* @return \Drupal\http_client_manager\HttpClientInterface
* The HTTP Client used to make requests.
*/
public function getHttpClient();
/**
* Executes an HTTP Config Request.
*
* @param string $request_name
* The Http Config Request name.
* @param int|bool $expire
* The expire time, Cache::PERMANENT or FALSE if cache has not to be used.
* @param array $tags
* An array of cache tags to be used if $expire !== FALSE.
*
* @return array
* The Response array.
*/
public function httpConfigRequest($request_name, $expire = FALSE, array $tags = []);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HttpServiceApiWrapperInterface:: |
public | function | Get HTTP Client. | 1 |
HttpServiceApiWrapperInterface:: |
public | function | Executes an HTTP Config Request. | 1 |