Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 632 Bytes

route-Controller-onProcessRequest.md

File metadata and controls

21 lines (17 loc) · 632 Bytes

Route / Controller :: onProcessRequest

im\route\Controller


Description

Called by the RouteEngine when the controller should process a matching request

Synopsis

onProcessRequest(im\route\RouteEngine $router, im\http\msg\Request $request, null|im\http\msg\Response $response = NULL): im\http\msg\Response

Parameters

Name Description
router The router that called this controller
request The request to process
response Optional response to populate

Return

The controller returns a response to serve to the client