\CommuniqueInterceptor

Interface

This interface is used to describe the functionality of an interceptor

Summary

Methods
Constants
request()
response()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

request()

request(\Communique\RESTClientRequest  $request) : \Communique\RESTClientRequest

Process the outgoing request.

When implementing this method, it is permitted to simply return the request object unchanged if needed.

Parameters

\Communique\RESTClientRequest $request

Request encapsulation object

Returns

\Communique\RESTClientRequest

Request encapsulation object

response()

response(\Communique\RESTClientResponse  $response) : \Communique\RESTClientResponse

Process the incoming response.

When implementing this method, it is permitted to simply return the request object unchanged if needed.

Parameters

\Communique\RESTClientResponse $response

Response encapsulation object

Returns

\Communique\RESTClientResponse

Response encapsulation object