title: Request Filters summary: Create objects for modifying request and response objects across controllers. # Request Filters [api:RequestFilter] is an interface that provides two key methods. `preRequest` and `postRequest`. These methods are executed before and after a request occurs to give developers a hook to modify any global state, add request tracking or perform operations wrapped around responses and request objects. A `RequestFilter` is defined as: **mysite/code/CustomRequestFilter.php** :::php