You are here

private function GuzzleConnectionDebug::processSuccessfulRequest in Elasticsearch Connector 7

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

Parameters

Request $request:

string $body:

1 call to GuzzleConnectionDebug::processSuccessfulRequest()
GuzzleConnectionDebug::sendRequest in modules/elasticsearch_connector_devel/includes/GuzzleConnectionDebugging.inc

File

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

Class

GuzzleConnectionDebug

Namespace

Elasticsearch\Connections

Code

private function processSuccessfulRequest(Request $request, $body) {
  $response = $request
    ->getResponse();
  $headers = $request
    ->getHeaders()
    ->getAll();
  $this
    ->logRequestSuccess($request
    ->getMethod(), $request
    ->getUrl(), $body, $headers, $response
    ->getStatusCode(), $response
    ->getBody(true), $response
    ->getInfo('total_time'));
}