Uses of Class
com.squareup.okhttp.Connection
| Package | Description |
|---|---|
| com.squareup.okhttp | |
| com.squareup.okhttp.internal.http |
-
Uses of Connection in com.squareup.okhttp
Methods in com.squareup.okhttp that return Connection Modifier and Type Method Description ConnectionConnectionPool. get(Address address)Returns a recycled connection toaddress, or null if no such connection exists.Methods in com.squareup.okhttp with parameters of type Connection Modifier and Type Method Description voidConnectionPool. maybeShare(Connection connection)Shares the SPDY connection with the pool.voidConnectionPool. recycle(Connection connection)Givesconnectionto the pool. -
Uses of Connection in com.squareup.okhttp.internal.http
Fields in com.squareup.okhttp.internal.http declared as Connection Modifier and Type Field Description protected ConnectionHttpEngine. connectionMethods in com.squareup.okhttp.internal.http that return Connection Modifier and Type Method Description ConnectionHttpEngine. getConnection()ConnectionRouteSelector. next(String method)Returns the next route address to attempt.Methods in com.squareup.okhttp.internal.http with parameters of type Connection Modifier and Type Method Description protected voidHttpEngine. connected(Connection connection)Called after a socket connection has been created or retrieved from the pool.protected voidHttpsEngine. connected(Connection connection)voidRouteSelector. connectFailed(Connection connection, IOException failure)Clients should invoke this method when they encounter a connectivity failure on a connection returned by this route selector.Constructors in com.squareup.okhttp.internal.http with parameters of type Connection Constructor 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)