Open Monograph Press
3.3.0
|
Public Member Functions | |
__construct (RequestInterface $request, ResponseInterface $response=null, $transferTime=null, $handlerErrorData=null, $handlerStats=[]) | |
getEffectiveUri () | |
getHandlerErrorData () | |
getHandlerStat ($stat) | |
getHandlerStats () | |
getRequest () | |
getResponse () | |
getTransferTime () | |
hasResponse () | |
Represents data at the point after it was transferred either successfully or after a network error.
Definition at line 12 of file TransferStats.php.
GuzzleHttp\TransferStats::__construct | ( | RequestInterface | $request, |
ResponseInterface | $response = null , |
||
$transferTime = null , |
|||
$handlerErrorData = null , |
|||
$handlerStats = [] |
|||
) |
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. |
Definition at line 27 of file TransferStats.php.
GuzzleHttp\TransferStats::getEffectiveUri | ( | ) |
Get the effective URI the request was sent to.
Definition at line 88 of file TransferStats.php.
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.
Definition at line 78 of file TransferStats.php.
GuzzleHttp\TransferStats::getHandlerStat | ( | $stat | ) |
Get a specific handler statistic from the handler by name.
string | $stat | Handler specific transfer stat to retrieve. |
Definition at line 120 of file TransferStats.php.
GuzzleHttp\TransferStats::getHandlerStats | ( | ) |
Gets an array of all of the handler specific transfer data.
Definition at line 108 of file TransferStats.php.
GuzzleHttp\TransferStats::getRequest | ( | ) |
Definition at line 44 of file TransferStats.php.
GuzzleHttp\TransferStats::getResponse | ( | ) |
Returns the response that was received (if any).
Definition at line 54 of file TransferStats.php.
GuzzleHttp\TransferStats::getTransferTime | ( | ) |
Get the estimated time the request was being transferred by the handler.
Definition at line 98 of file TransferStats.php.
GuzzleHttp\TransferStats::hasResponse | ( | ) |
Returns true if a response was received.
Definition at line 64 of file TransferStats.php.