Package | Description |
---|---|
com.squareup.okhttp | |
com.squareup.okhttp.internal.http |
Modifier and Type | Method and Description |
---|---|
Connection |
ConnectionPool.get(Address address)
Returns a recycled connection to
address , or null if no such connection exists. |
Modifier and Type | Method and Description |
---|---|
void |
ConnectionPool.maybeShare(Connection connection)
Shares the SPDY connection with the pool.
|
void |
ConnectionPool.recycle(Connection connection)
Gives
connection to the pool. |
Modifier and Type | Field and Description |
---|---|
protected Connection |
HttpEngine.connection |
Modifier and Type | Method and Description |
---|---|
Connection |
HttpEngine.getConnection() |
Connection |
RouteSelector.next(String method)
Returns the next route address to attempt.
|
Modifier and Type | Method and Description |
---|---|
protected void |
HttpsEngine.connected(Connection connection) |
protected void |
HttpEngine.connected(Connection connection)
Called after a socket connection has been created or retrieved from the
pool.
|
void |
RouteSelector.connectFailed(Connection connection,
IOException failure)
Clients should invoke this method when they encounter a connectivity
failure on a connection returned by this route selector.
|
Constructor and Description |
---|
HttpEngine(OkHttpClient client,
Policy policy,
String method,
RawHeaders requestHeaders,
Connection connection,
com.squareup.okhttp.internal.http.RetryableOutputStream requestBodyOut) |
HttpsEngine(OkHttpClient client,
Policy policy,
String method,
RawHeaders requestHeaders,
Connection connection,
com.squareup.okhttp.internal.http.RetryableOutputStream requestBody) |
Copyright © 2014. All rights reserved.