RequestObserverInterface
API reference › Yii3 Debug › Collector › RequestObserverInterface
Implemented by 2 types
Optional host-local request hooks for registered collectors, independent of any extension ID.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
collectRequest() abstract | Records the incoming request. | RequestObserverInterface |
collectResponse() abstract | Records the outgoing response. | RequestObserverInterface |
Method details
Section titled “Method details”collectRequest()
Section titled “collectRequest() ”abstract public function collectRequest(Psr\Http\Message\ServerRequestInterface $request): voidRecords the incoming request.
Parameters
| Parameter | Type | Description |
|---|---|---|
$request | Psr\ | Request reaching the debugger middleware. |
collectResponse()
Section titled “collectResponse() ”abstract public function collectResponse(Psr\Http\Message\ResponseInterface $response): voidRecords the outgoing response.
Parameters
| Parameter | Type | Description |
|---|---|---|
$response | Psr\ | Response produced for the captured request. |