Concept Flow - Interceptor interface
Request received
Interceptor intercept() called
Execute pre-processing logic
Call next.handle() to continue
Wait for response Observable
Execute post-processing logic on response
Return modified or original response
Response sent to client
The interceptor intercepts the request, runs code before and after the main handler, then returns the response.