Interceptors
Create module interceptors to listen and react to BoxLang runtime events
function configure() {
settings = {};
// Register interceptors
interceptors = [
{
class: "interceptors.RequestLogger",
properties: {
logHeaders: true,
logBody: false
}
}
];
// Declare custom interception points
customInterceptionPoints = [
"onBeforeGreeting",
"onAfterGreeting"
];
}Lambda Interceptors
Custom Interception Points
Listening to Lifecycle Events
Next Steps
Last updated
Was this helpful?
