public abstract class Internal extends Object
okhttp3
so they can be used from OkHttp's implementation
packages. The only implementation of this interface is in OkHttpClient
.Constructor and Description |
---|
Internal() |
public static Internal instance
public static void initializeInstanceForTests()
public abstract void addLenient(Headers.Builder builder, String line)
public abstract void addLenient(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 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 HttpUrl getHttpUrlChecked(String url) throws MalformedURLException, UnknownHostException
public abstract StreamAllocation streamAllocation(Call call)
public abstract Call newWebSocketCall(OkHttpClient client, Request request)
Copyright © 2017. All Rights Reserved.