| Methods |
public
|
__construct(
RequestInterface $request,
ResponseInterface|null $response = null,
float|null $transferTime = null,
mixed $handlerErrorData = null,
array $handlerStats = [],
)
Parameters
| $request |
Request that was sent.
|
| $response |
Response received (if any)
|
| $transferTime |
Total handler transfer time.
|
| $handlerErrorData |
Handler error data.
|
| $handlerStats |
Handler specific stats.
|
|
#
|
public
|
getRequest(): RequestInterface
|
#
|
public
|
getResponse(): ?ResponseInterface
Returns the response that was received (if any).
Returns the response that was received (if any).
|
#
|
public
|
hasResponse(): bool
Returns true if a response was received.
Returns true if a response was received.
|
#
|
public
|
getHandlerErrorData(): mixed
Gets handler specific error data.
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
|
getEffectiveUri(): UriInterface
Get the effective URI the request was sent to.
Get the effective URI the request was sent to.
|
#
|
public
|
getTransferTime(): float|null
Get the estimated time the request was being transferred by the handler.
Get the estimated time the request was being transferred by the handler.
Returns
|
#
|
public
|
getHandlerStats(): array
Gets an array of all of the handler specific transfer data.
Gets an array of all of the handler specific transfer data.
|
#
|
public
|
getHandlerStat(string $stat): mixed|null
Get a specific handler statistic from the handler by name.
Get a specific handler statistic from the handler by name.
Parameters
| $stat |
Handler specific transfer stat to retrieve.
|
|
#
|