I could not agree more with my colleague and friend Travis Johnson's opinion that "[INTERCEPTORS ARE SO COOL][iasc]!" In that post, he succinctly describes the [Interceptor pattern][pattern] as used adroitly by [OkHttp][okhttp]. But, as is often the case, I believe a complicated object-oriented pattern obscures the simple functional gem within it.
I'll quote liberally from [OkHttp's documentation on the topic][okhttp-interceptor]:
Interceptors are a powerful mechanism that can monitor, rewrite, and retry calls. […] >