You are here

private function GuzzleConnectionDebug::getURI in Elasticsearch Connector 7

Same name and namespace in other branches
  1. 7.5 modules/elasticsearch_connector_devel/includes/GuzzleConnectionDebugging.inc \Elasticsearch\Connections\GuzzleConnectionDebug::getURI()
  2. 7.2 modules/elasticsearch_connector_devel/includes/GuzzleConnectionDebugging.inc \Elasticsearch\Connections\GuzzleConnectionDebug::getURI()

Parameters

string $uri:

array $params:

Return value

string

1 call to GuzzleConnectionDebug::getURI()
GuzzleConnectionDebug::performRequest in modules/elasticsearch_connector_devel/includes/GuzzleConnectionDebugging.inc
Perform an HTTP request on the cluster

File

modules/elasticsearch_connector_devel/includes/GuzzleConnectionDebugging.inc, line 146

Class

GuzzleConnectionDebug

Namespace

Elasticsearch\Connections

Code

private function getURI($uri, $params) {
  $uri = $this->host . $uri;
  if (isset($params) === true) {
    $uri .= '?' . http_build_query($params);
  }
  return $uri;
}