Route / Controller :: onProcessRequest
im\route\Controller
Called by the RouteEngine
when the controller should process a matching request
onProcessRequest(im\route\RouteEngine $router, im\http\msg\Request $request, null|im\http\msg\Response $response = NULL): im\http\msg\Response
Name | Description |
---|---|
router | The router that called this controller |
request | The request to process |
response | Optional response to populate |
The controller returns a response to serve to the client