Class HeaderRequestInterceptor
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.interceptors.HeaderRequestInterceptor
-
- All Implemented Interfaces:
okhttp3.Interceptor
public class HeaderRequestInterceptor extends java.lang.Object implements okhttp3.Interceptor
Request Interceptor for adding the Required Headers for doing API calls.Adds the following:
- Accept - has a value of "application/vnd.stellar-v1+json"
- User-Agent - has a client-defined value which follows the format "(app name)/(app version) (os)/(os version)/(device model)"
-
-
Constructor Summary
Constructors Constructor Description HeaderRequestInterceptor(android.content.Context context, java.lang.String userAgentString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.Response
intercept(okhttp3.Interceptor.Chain chain)
-