Concept Flow - Interceptors for request modification
HTTP Request Initiated
Interceptor intercept() called
Modify Request (e.g., add header)
Forward Modified Request
Server receives modified request
Server sends response
Interceptor intercept() receives response
Optionally modify response
Response returned to caller
When an HTTP request starts, the interceptor catches it, modifies it (like adding headers), then sends it on. The response can also be caught and changed before reaching the caller.