Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 588 Bytes

route-Controller.md

File metadata and controls

20 lines (16 loc) · 588 Bytes

Route / Controller

im\route\Controller


Description

Defines a controller than is used when adding a route in a Router

Synopsis

interface Controller {

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

Methods

Name Description
Controller :: onProcessRequest Called by the RouteEngine when the controller should process a matching request