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

BoxRegisterRequestInterceptor

Registers a request interceptor that can listen to application listener request runtime events.

Method Signature

BoxRegisterRequestInterceptor(interceptor=[any], states=[any])

Arguments

Argument
Type
Required
Description
Default

interceptor

any

true

This can be a class or a closure/lambda that will listen to global events

states

any

false

An array of events to listen to along side the points discovered in the incoming interceptor

[]

Examples

Register a request-scoped interceptor

boxRegisterRequestInterceptor( "myRequestInterceptor", "path.to.Interceptor" );
writeOutput( "registered" );

Result: registered

Last updated

Was this helpful?