Journal
in
Records history of HTTP calls.
Tags
Table of Contents
Methods
- addFailure() : mixed
- Record a failed call.
- addSuccess() : mixed
- Record a successful call.
Methods
addFailure()
Record a failed call.
public
addFailure(RequestInterface $request, ClientExceptionInterface $exception) : mixed
Parameters
- $request : RequestInterface
-
Request use to make the call
- $exception : ClientExceptionInterface
-
Exception returned by the call
addSuccess()
Record a successful call.
public
addSuccess(RequestInterface $request, ResponseInterface $response) : mixed
Parameters
- $request : RequestInterface
-
Request use to make the call
- $response : ResponseInterface
-
Response returned by the call