Sneaking Data into an OkHttp Interceptor
OkHttp Interceptors are a fun & powerful way to implement cross-cutting behavior in your app. You can use ’em for authentication, performance, monitoring, and more. There’s even open source interceptors for OAuth signing and curl logging! Suppose we want to write an interceptor that tracks which activities use the…