Package com.slack.api.util.http
Class UserAgentInterceptor
java.lang.Object
com.slack.api.util.http.UserAgentInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
public class UserAgentInterceptor extends Object implements okhttp3.Interceptor
An OkHttpClient interceptor that adds the SDK User-Agent to all the outgoing HTTP requests by this SDK.
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static String
USER_AGENT_PREFIX
-
Constructor Summary
Constructors Constructor Description UserAgentInterceptor(Map<String,String> additionalInfo)
-
Method Summary
-
Field Details
-
USER_AGENT_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
buildDefaultUserAgent
-
intercept
- Specified by:
intercept
in interfaceokhttp3.Interceptor
- Throws:
IOException
-