- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
25 lines
876 B
Java
25 lines
876 B
Java
package okhttp3.internal.connection;
|
|
|
|
import okhttp3.Interceptor;
|
|
import okhttp3.OkHttpClient;
|
|
import okhttp3.Request;
|
|
import okhttp3.Response;
|
|
import okhttp3.internal.http.RealInterceptorChain;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class ConnectInterceptor implements Interceptor {
|
|
public final OkHttpClient client;
|
|
|
|
public ConnectInterceptor(OkHttpClient okHttpClient) {
|
|
this.client = okHttpClient;
|
|
}
|
|
|
|
@Override // okhttp3.Interceptor
|
|
public Response intercept(Interceptor.Chain chain) {
|
|
RealInterceptorChain realInterceptorChain = (RealInterceptorChain) chain;
|
|
Request request = realInterceptorChain.request();
|
|
Transmitter transmitter = realInterceptorChain.transmitter();
|
|
return realInterceptorChain.proceed(request, transmitter, transmitter.newExchange(chain, !request.method().equals("GET")));
|
|
}
|
|
}
|