Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Proxy Events

The ColdBox Proxy life cycle fires all request interception points plus preProxyResults before returning results to proxy callers.

The ColdBox Proxy also has a different life cycle than traditional MVC. All of a request's interception points fire with one addition: preProxyResults. This event fires right before the proxy returns results back to proxies. This is a great way to do transformations, logging, etc.

class{

    function preProxyResults(event, interceptData){
        log.debug("Proxy request finalized: ", interceptData.proxyResults );
    }

}
component{

    function preProxyResults(event, interceptData){
        log.debug("Proxy request finalized: ", interceptData.proxyResults );
    }

}

Last updated

Was this helpful?