Package com.zendesk.sdk.network.impl
Class ZendeskRequestInterceptor
- java.lang.Object
-
- com.zendesk.sdk.network.impl.ZendeskRequestInterceptor
-
public class ZendeskRequestInterceptor extends java.lang.Object
This request interceptor will add headers to all requests that are made through the means of aretrofit2.Retrofit
- Adds a User-Agent header to requests
- Adds an Accept header with value application/json to all requests
- Adds a Client-Identifier header to requests if it is available
-
-
Constructor Summary
Constructors Constructor and Description ZendeskRequestInterceptor(java.lang.String oauthId, java.lang.String userAgent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Response
intercept(Chain chain)
-