Class HelixHttpLoggingInterceptor
java.lang.Object
com.helixframework.okhttp.logging.HelixHttpLoggingInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
OkHttp interceptor that logs the http request and response in a standardized format.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating new instances ofHelixHttpLoggingInterceptor.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 TypeMethodDescriptionbuilder()Gets a builder forHelixHttpLoggingInterceptor.okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain) static HelixHttpLoggingInterceptorstandard()Creates an instance ofHelixHttpLoggingInterceptorwith the standard default configuration.
-
Method Details
-
builder
Gets a builder forHelixHttpLoggingInterceptor.- Returns:
- a
HelixHttpLoggingInterceptor.Builder
-
standard
Creates an instance ofHelixHttpLoggingInterceptorwith the standard default configuration.- Returns:
- a
HelixHttpLoggingInterceptor
-
intercept
@NotNull public okhttp3.Response intercept(@NotNull okhttp3.Interceptor.Chain chain) throws IOException - Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-