Represents data at the point after it was transferred either successfully or after a network error.
CloneableFinalInstantiable
| Methods |
public __construct(Psr\Http\Message\RequestInterface $request, ?Psr\Http\Message\ResponseInterface $response = NULL, ?float $transferTime = NULL, $handlerErrorData = NULL, array $handlerStats = [])
|
| public getEffectiveUri() : Psr\Http\Message\UriInterface Get the effective URI the request was sent to. |
| public 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.
|
| public getHandlerStat(string $stat) Get a specific handler statistic from the handler by name.
|
| public getHandlerStats() : array Gets an array of all of the handler specific transfer data. |
| public getRequest() : Psr\Http\Message\RequestInterface |
| public getResponse() : ?Psr\Http\Message\ResponseInterface Returns the response that was received (if any). |
| public getTransferTime() : ?float Get the estimated time the request was being transferred by the handler.
|
| public hasResponse() : bool Returns true if a response was received. |
| Properties |
private $handlerErrorData = NULL
|
private $handlerStats = NULL
|
private $request = NULL
|
private $response = NULL
|
private $transferTime = NULL
|