private function GuzzleConnectionDebug::buildGuzzleRequest in Elasticsearch Connector 7
Same name and namespace in other branches
- 7.5 modules/elasticsearch_connector_devel/includes/GuzzleConnectionDebugging.inc \Elasticsearch\Connections\GuzzleConnectionDebug::buildGuzzleRequest()
- 7.2 modules/elasticsearch_connector_devel/includes/GuzzleConnectionDebugging.inc \Elasticsearch\Connections\GuzzleConnectionDebug::buildGuzzleRequest()
Parameters
string $method:
string $uri:
string $body:
array $options:
Return value
Request
1 call to GuzzleConnectionDebug::buildGuzzleRequest()
- 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 166
Class
Namespace
Elasticsearch\ConnectionsCode
private function buildGuzzleRequest($method, $uri, $body, $options = array()) {
if ($method === 'GET' && isset($body) === true) {
$method = 'POST';
}
if (isset($body) === true) {
$request = $this->guzzle
->{$method}($uri, array(), $body, $options);
}
else {
$request = $this->guzzle
->{$method}($uri, array(), $options);
}
return $request;
}