Class UserAgentHandler
java.lang.Object
com.microsoft.kiota.http.middleware.UserAgentHandler
- All Implemented Interfaces:
okhttp3.Interceptor
Adds the current library version as a product to the user agent header
-
Nested Class Summary
Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
Fields inherited from interface okhttp3.Interceptor
Companion -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of the user agent handler with the default optionsUserAgentHandler(UserAgentHandlerOption userAgentHandlerOption) Creates a new instance of the user agent handler with the provided options -
Method Summary
-
Constructor Details
-
UserAgentHandler
public UserAgentHandler()Creates a new instance of the user agent handler with the default options -
UserAgentHandler
Creates a new instance of the user agent handler with the provided options- Parameters:
userAgentHandlerOption- the options to use
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-