Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TransferStats.php

function TransferStats::__construct

Parameters

RequestInterface $request Request that was sent.:

ResponseInterface|null $response Response received (if any):

float|null $transferTime Total handler transfer time.:

mixed $handlerErrorData Handler error data.:

array $handlerStats Handler specific stats.:

File

vendor/guzzlehttp/guzzle/src/TransferStats.php, line 47

Class

TransferStats
Represents data at the point after it was transferred either successfully or after a network error.

Namespace

GuzzleHttp

Code

public function __construct(RequestInterface $request, ?ResponseInterface $response = null, ?float $transferTime = null, $handlerErrorData = null, array $handlerStats = []) {
    $this->request = $request;
    $this->response = $response;
    $this->transferTime = $transferTime;
    $this->handlerErrorData = $handlerErrorData;
    $this->handlerStats = $handlerStats;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal