Run an interceptor chain using the onion model.
Builds a nested call chain: interceptor[0] → interceptor[1] → ... → handler. Each interceptor's next() invokes the next one in the chain. The final next() invokes handler.
next()
handler
Array of interceptor functions (executed in order)
The call context (shared across all interceptors)
The actual method handler to invoke at the end of the chain
Run an interceptor chain using the onion model.
Builds a nested call chain: interceptor[0] → interceptor[1] → ... → handler. Each interceptor's
next()invokes the next one in the chain. The finalnext()invokeshandler.