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
GuzzleHttpCode
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;
}