ClientHeadersEndpoint
in package
Gets the client headers from the cloud service.
Tags
Table of Contents
Constants
- CLOUD_HEADERS_PATH = '/v1/detect/headers?licencekey=%s'
Properties
- $licenceKey : string
- $servers : array<string|int, mixed>
- $timeoutSeconds : int
Methods
- __construct() : mixed
- getHeadersJson() : string|null
- extractHeadersJson() : string|null
- getConnectionStr() : string
- getHeadersFromEndpoint() : string|null
Constants
CLOUD_HEADERS_PATH
public
mixed
CLOUD_HEADERS_PATH
= '/v1/detect/headers?licencekey=%s'
Properties
$licenceKey
private
string
$licenceKey
$servers
private
array<string|int, mixed>
$servers
$timeoutSeconds
private
int
$timeoutSeconds
Methods
__construct()
public
__construct(Client $client) : mixed
Parameters
- $client : Client
getHeadersJson()
public
getHeadersJson() : string|null
Return values
string|nullextractHeadersJson()
private
extractHeadersJson( $results) : string|null
Parameters
Return values
string|nullgetConnectionStr()
private
getConnectionStr( $server) : string
Parameters
Return values
stringgetHeadersFromEndpoint()
private
getHeadersFromEndpoint( $server) : string|null