RequestFilter
interface RequestFilter (View source)
A request filter is an object that's executed before and after a request occurs. By returning 'false' from the preRequest method, request execution will be stopped from continuing
Methods
public
bool
preRequest(SS_HTTPRequest $request, Session $session, DataModel $model)
Filter executed before a request processes
public
bool
postRequest(SS_HTTPRequest $request, SS_HTTPResponse $response, DataModel $model)
Filter executed AFTER a request
Details
bool
preRequest(SS_HTTPRequest $request, Session $session, DataModel $model)
Filter executed before a request processes
bool
postRequest(SS_HTTPRequest $request, SS_HTTPResponse $response, DataModel $model)
Filter executed AFTER a request