what-the-bank/sources/okhttp3/Interceptor.java

64 lines
1.8 KiB
Java

package okhttp3;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import o.C14957gcv;
import o.InterfaceC14894gbR;
import okhttp3.Interceptor;
/* loaded from: classes.dex */
public interface Interceptor {
public static final Companion Companion = Companion.$$INSTANCE;
/* loaded from: classes.dex */
public interface Chain {
Call call();
int connectTimeoutMillis();
Connection connection();
Response proceed(Request request) throws IOException;
int readTimeoutMillis();
Request request();
Chain withConnectTimeout(int i, TimeUnit timeUnit);
Chain withReadTimeout(int i, TimeUnit timeUnit);
Chain withWriteTimeout(int i, TimeUnit timeUnit);
int writeTimeoutMillis();
}
Response intercept(Chain chain) throws IOException;
/* loaded from: classes.dex */
public static final class Companion {
static final Companion $$INSTANCE = new Companion();
private Companion() {
}
public final Interceptor invoke(final InterfaceC14894gbR<? super Chain, Response> interfaceC14894gbR) {
C14957gcv.e(interfaceC14894gbR, "");
return new Interceptor(interfaceC14894gbR) { // from class: okhttp3.Interceptor$Companion$invoke$1
final InterfaceC14894gbR<Interceptor.Chain, Response> $block;
@Override // okhttp3.Interceptor
public final Response intercept(Interceptor.Chain chain) {
C14957gcv.e(chain, "");
return this.$block.invoke(chain);
}
/* JADX WARN: Multi-variable type inference failed */
{
this.$block = interfaceC14894gbR;
}
};
}
}
}