You are here

public function TransferStats::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/guzzle/src/TransferStats.php \GuzzleHttp\TransferStats::__construct()

Parameters

RequestInterface $request Request that was sent.:

ResponseInterface $response Response received (if any):

null $transferTime Total handler transfer time.:

mixed $handlerErrorData Handler error data.:

array $handlerStats Handler specific stats.:

File

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

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, $transferTime = null, $handlerErrorData = null, $handlerStats = []) {
  $this->request = $request;
  $this->response = $response;
  $this->transferTime = $transferTime;
  $this->handlerErrorData = $handlerErrorData;
  $this->handlerStats = $handlerStats;
}