Explore Library
Quiz

Interceptor Execution Order & RxJS Streams

Understand how nested interceptors process requests before and responses after the route handler.

You register two global interceptors in order [LoggingInterceptor, TransformInterceptor]. Each runs code BEFORE calling next.handle() and also pipes a map()/tap() operator onto the returned Observable to run code AFTER the handler. In what order does the 'before' code and the 'after' (piped) code execute?