Class BasicAuthInterceptor
java.lang.Object
com.helixframework.okhttp.basicauth.BasicAuthInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
OkHttp interceptor that ensures basic authentication credentials are set on the request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating new instances ofBasicAuthInterceptor.Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
Fields inherited from interface okhttp3.Interceptor
Companion -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicAuthInterceptor.Builderbuilder()Creates a builder forBasicAuthInterceptor.okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain)
-
Method Details
-
builder
Creates a builder forBasicAuthInterceptor.- Returns:
- a
BasicAuthInterceptor.Builder
-
intercept
@NotNull public okhttp3.Response intercept(@NotNull okhttp3.Interceptor.Chain chain) throws IOException - Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-