Class CacheControlInterceptor
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.interceptors.CacheControlInterceptor
-
- All Implemented Interfaces:
okhttp3.Interceptor
public class CacheControlInterceptor extends java.lang.Object implements okhttp3.Interceptor
A Network Interceptor which adds Cache-Control headers to out-going requests. NOTE: this is only a temporary work-around while caching is not yet set-up on the server
-
-
Constructor Summary
Constructors Constructor Description CacheControlInterceptor(android.content.Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.Response
intercept(okhttp3.Interceptor.Chain chain)
-