Package | Description |
---|---|
com.squareup.okhttp | |
com.squareup.okhttp.internal | |
com.squareup.okhttp.internal.http |
Modifier and Type | Method and Description |
---|---|
Connection |
Interceptor.Chain.connection() |
Connection |
ConnectionPool.get(Address address)
Returns a recycled connection to
address , or null if no such connection exists. |
Modifier and Type | Method and Description |
---|---|
abstract Connection |
Internal.callEngineGetConnection(Call call) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
Internal.clearOwner(Connection connection) |
abstract void |
Internal.closeIfOwnedBy(Connection connection,
Object owner) |
abstract void |
Internal.connectAndSetOwner(OkHttpClient client,
Connection connection,
HttpEngine owner,
Request request) |
abstract boolean |
Internal.connectionClearOwner(Connection connection) |
abstract void |
Internal.connectionCloseIfOwnedBy(Connection connection,
Object owner) |
abstract void |
Internal.connectionSetOwner(Connection connection,
Object owner) |
abstract boolean |
Internal.isReadable(Connection pooled) |
abstract Transport |
Internal.newTransport(Connection connection,
HttpEngine httpEngine) |
abstract void |
Internal.recycle(ConnectionPool pool,
Connection connection) |
abstract int |
Internal.recycleCount(Connection connection) |
abstract void |
Internal.setOwner(Connection connection,
HttpEngine httpEngine) |
abstract void |
Internal.setProtocol(Connection connection,
Protocol protocol) |
Modifier and Type | Method and Description |
---|---|
Connection |
HttpEngine.close()
Release any resources held by this engine.
|
Connection |
HttpEngine.getConnection() |
Connection |
RouteSelector.next(HttpEngine owner)
Selects a route to attempt and connects it if it isn't already.
|
Modifier and Type | Method and Description |
---|---|
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 |
---|
HttpConnection(ConnectionPool pool,
Connection connection,
Socket socket) |
HttpEngine(OkHttpClient client,
Request request,
boolean bufferRequestBody,
boolean callerWritesRequestBody,
boolean forWebSocket,
Connection connection,
RouteSelector routeSelector,
RetryableSink requestBodyOut,
Response priorResponse) |
Copyright © 2015. All rights reserved.