|
| __construct (RequestInterface $request, ?ResponseInterface $response=null, ?float $transferTime=null, $handlerErrorData=null, array $handlerStats=[]) |
|
| getEffectiveUri () |
| Get the effective URI the request was sent to.
|
|
| getHandlerErrorData () |
| Gets handler specific error data.
|
|
| getHandlerStat (string $stat) |
| Get a specific handler statistic from the handler by name.
|
|
| getHandlerStats () |
| Gets an array of all of the handler specific transfer data.
|
|
| getRequest () |
|
| getResponse () |
| Returns the response that was received (if any).
|
|
| getTransferTime () |
| Get the estimated time the request was being transferred by the handler.
|
|
| hasResponse () |
| Returns true if a response was received.
|
|
◆ __construct()
GuzzleHttp\TransferStats::__construct |
( |
RequestInterface | $request, |
|
|
?ResponseInterface | $response = null, |
|
|
?float | $transferTime = null, |
|
|
| $handlerErrorData = null, |
|
|
array | $handlerStats = [] ) |
- 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. |
◆ getHandlerErrorData()
GuzzleHttp\TransferStats::getHandlerErrorData |
( |
| ) |
|
Gets handler specific error data.
This might be an exception, a integer representing an error code, or anything else. Relying on this value assumes that you know what handler you are using.
- Return values
-
◆ getHandlerStat()
GuzzleHttp\TransferStats::getHandlerStat |
( |
string | $stat | ) |
|
Get a specific handler statistic from the handler by name.
- Parameters
-
string | $stat | Handler specific transfer stat to retrieve. |
- Return values
-
◆ getTransferTime()
GuzzleHttp\TransferStats::getTransferTime |
( |
| ) |
|
Get the estimated time the request was being transferred by the handler.
- Return values
-
float|null | Time in seconds. |
The documentation for this class was generated from the following file:
- lib/guzzlehttp/guzzle/src/TransferStats.php