public class HttpLoggingInterceptor
extends java.lang.Object
implements okhttp3.Interceptor
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpLoggingInterceptor.Level |
static interface |
HttpLoggingInterceptor.Logger |
| Constructor and Description |
|---|
HttpLoggingInterceptor() |
HttpLoggingInterceptor(HttpLoggingInterceptor.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
HttpLoggingInterceptor.Level |
getLevel() |
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
HttpLoggingInterceptor |
setLevel(HttpLoggingInterceptor.Level level)
Change the level at which this interceptor logs.
|
public HttpLoggingInterceptor()
public HttpLoggingInterceptor(HttpLoggingInterceptor.Logger logger)
public HttpLoggingInterceptor setLevel(HttpLoggingInterceptor.Level level)
public HttpLoggingInterceptor.Level getLevel()
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws java.io.IOException
intercept in interface okhttp3.Interceptorjava.io.IOException