ClientHeadersService
in package
Obtains the headers to send to the Cloud Service.
Tags
Table of Contents
Properties
- $cache : ClientHeadersCache
- $fallbackHeaders : array<string|int, mixed>
- $headersEndpoint : ClientHeadersEndpoint
- $useCache : bool
Methods
- __construct() : mixed
- getHeaders() : array<string|int, mixed>
- getFallbackHeader() : array<string|int, mixed>
- getFallbackHeaders() : array<string|int, mixed>
- getHeadersFromCloudService() : array<string|int, mixed>|null
Properties
$cache
private
ClientHeadersCache
$cache
$fallbackHeaders
private
array<string|int, mixed>
$fallbackHeaders
$headersEndpoint
private
ClientHeadersEndpoint
$headersEndpoint
$useCache
private
bool
$useCache
Methods
__construct()
public
__construct(Client $client) : mixed
Parameters
- $client : Client
getHeaders()
public
getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>getFallbackHeader()
private
getFallbackHeader( $name) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed>getFallbackHeaders()
private
getFallbackHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>getHeadersFromCloudService()
private
getHeadersFromCloudService() : array<string|int, mixed>|null