55 lines
2.0 KiB
Java
55 lines
2.0 KiB
Java
package okhttp3.internal;
|
|
|
|
import java.net.Socket;
|
|
import javax.net.ssl.SSLSocket;
|
|
import okhttp3.Address;
|
|
import okhttp3.Call;
|
|
import okhttp3.ConnectionPool;
|
|
import okhttp3.ConnectionSpec;
|
|
import okhttp3.Headers;
|
|
import okhttp3.OkHttpClient;
|
|
import okhttp3.Request;
|
|
import okhttp3.Response;
|
|
import okhttp3.Route;
|
|
import okhttp3.internal.cache.InternalCache;
|
|
import okhttp3.internal.connection.RealConnection;
|
|
import okhttp3.internal.connection.RouteDatabase;
|
|
import okhttp3.internal.connection.StreamAllocation;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public abstract class Internal {
|
|
public static Internal instance;
|
|
|
|
public static void initializeInstanceForTests() {
|
|
new OkHttpClient();
|
|
}
|
|
|
|
public abstract void addLenient(Headers.Builder builder, String str);
|
|
|
|
public abstract void addLenient(Headers.Builder builder, String str, String str2);
|
|
|
|
public abstract void apply(ConnectionSpec connectionSpec, SSLSocket sSLSocket, boolean z);
|
|
|
|
public abstract int code(Response.Builder builder);
|
|
|
|
public abstract boolean connectionBecameIdle(ConnectionPool connectionPool, RealConnection realConnection);
|
|
|
|
public abstract Socket deduplicate(ConnectionPool connectionPool, Address address, StreamAllocation streamAllocation);
|
|
|
|
public abstract boolean equalsNonHost(Address address, Address address2);
|
|
|
|
public abstract RealConnection get(ConnectionPool connectionPool, Address address, StreamAllocation streamAllocation, Route route);
|
|
|
|
public abstract boolean isInvalidHttpUrlHost(IllegalArgumentException illegalArgumentException);
|
|
|
|
public abstract Call newWebSocketCall(OkHttpClient okHttpClient, Request request);
|
|
|
|
public abstract void put(ConnectionPool connectionPool, RealConnection realConnection);
|
|
|
|
public abstract RouteDatabase routeDatabase(ConnectionPool connectionPool);
|
|
|
|
public abstract void setCache(OkHttpClient.Builder builder, InternalCache internalCache);
|
|
|
|
public abstract StreamAllocation streamAllocation(Call call);
|
|
}
|