package okhttp3.internal;
import java.io.IOException;
import java.net.Socket;
import javax.annotation.Nullable;
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;
public abstract class Internal {
public static void initializeInstanceForTests() {
new OkHttpClient();
}
public static Internal instance;
public abstract void (Headers.Builder builder, String line);
public abstract void (Headers.Builder builder, String name, String value);
public abstract void setCache(OkHttpClient.Builder builder, InternalCache internalCache);
public abstract RealConnection get(ConnectionPool pool, Address address,
StreamAllocation streamAllocation, Route route);
public abstract boolean equalsNonHost(Address a, Address b);
public abstract Socket deduplicate(
ConnectionPool pool, Address address, StreamAllocation streamAllocation);
public abstract void put(ConnectionPool pool, RealConnection connection);
public abstract boolean connectionBecameIdle(ConnectionPool pool, RealConnection connection);
public abstract RouteDatabase routeDatabase(ConnectionPool connectionPool);
public abstract int code(Response.Builder responseBuilder);
public abstract void apply(ConnectionSpec tlsConfiguration, SSLSocket sslSocket,
boolean isFallback);
public abstract boolean isInvalidHttpUrlHost(IllegalArgumentException e);
public abstract StreamAllocation streamAllocation(Call call);
public abstract @Nullable IOException timeoutExit(Call call, @Nullable IOException e);
public abstract Call newWebSocketCall(OkHttpClient client, Request request);
}