ZEROSPAM\Framework\SDK\Client\Middleware\IMiddleware
Interface IMiddleware
Intercept the response given by the API in the case of a match with the set status code.
Synopsis
interface IMiddleware
{
- // methods
- public IMiddleware setClient()
- public static array statusCode()
- public array handle()
Methods
public
- handle() — Handle the request/response.
- setClient() — Set the OAuth Client.
- statusCode() — Which status error code does this middleware manage.