Class HttpsEngine
java.lang.Object
com.squareup.okhttp.internal.http.HttpEngine
com.squareup.okhttp.internal.http.HttpsEngine
public final class HttpsEngine extends HttpEngine
-
Field Summary
Fields inherited from class com.squareup.okhttp.internal.http.HttpEngine
client, connection, HTTP_CONTINUE, method, policy, routeSelector -
Constructor Summary
Constructors Constructor Description HttpsEngine(OkHttpClient client, Policy policy, String method, RawHeaders requestHeaders, Connection connection, com.squareup.okhttp.internal.http.RetryableOutputStream requestBody) -
Method Summary
Modifier and Type Method Description protected booleanacceptCacheResponseType(CacheResponse cacheResponse)Returns true ifcacheResponseis of the right type.protected voidconnected(Connection connection)Called after a socket connection has been created or retrieved from the pool.SSLSocketgetSslSocket()protected TunnelRequestgetTunnelConfig()protected booleanincludeAuthorityInRequestLine()Returns true if the request line should contain the full URL with host and port (like "GET http://android.com/foo HTTP/1.1") or only the path (like "GET /foo HTTP/1.1").Methods inherited from class com.squareup.okhttp.internal.http.HttpEngine
automaticallyReleaseConnectionToPool, connect, getCacheResponse, getConnection, getDefaultUserAgent, getOriginAddress, getRequestBody, getRequestHeaders, getResponseBody, getResponseCode, getResponseHeaders, getUri, hasResponse, hasResponseBody, readResponse, receiveHeaders, release, requestPath, sendRequest, writingRequestHeaders
-
Constructor Details
-
HttpsEngine
public HttpsEngine(OkHttpClient client, Policy policy, String method, RawHeaders requestHeaders, Connection connection, com.squareup.okhttp.internal.http.RetryableOutputStream requestBody) throws IOException- Throws:
IOException
-
-
Method Details
-
connected
Description copied from class:HttpEngineCalled after a socket connection has been created or retrieved from the pool. Subclasses use this hook to get a reference to the TLS data.- Overrides:
connectedin classHttpEngine
-
acceptCacheResponseType
Description copied from class:HttpEngineReturns true ifcacheResponseis of the right type. This condition is necessary but not sufficient for the cached response to be used.- Overrides:
acceptCacheResponseTypein classHttpEngine
-
includeAuthorityInRequestLine
protected boolean includeAuthorityInRequestLine()Description copied from class:HttpEngineReturns true if the request line should contain the full URL with host and port (like "GET http://android.com/foo HTTP/1.1") or only the path (like "GET /foo HTTP/1.1").This is non-final because for HTTPS it's never necessary to supply the full URL, even if a proxy is in use.
- Overrides:
includeAuthorityInRequestLinein classHttpEngine
-
getSslSocket
-
getTunnelConfig
- Overrides:
getTunnelConfigin classHttpEngine
-