public final class HttpsEngine extends HttpEngine
client, connection, HTTP_CONTINUE, method, policy, routeSelector| Constructor and Description |
|---|
HttpsEngine(OkHttpClient client,
Policy policy,
String method,
RawHeaders requestHeaders,
Connection connection,
com.squareup.okhttp.internal.http.RetryableOutputStream requestBody) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptCacheResponseType(CacheResponse cacheResponse)
Returns true if
cacheResponse is of the right type. |
protected void |
connected(Connection connection)
Called after a socket connection has been created or retrieved from the
pool.
|
SSLSocket |
getSslSocket() |
protected TunnelRequest |
getTunnelConfig() |
protected boolean |
includeAuthorityInRequestLine()
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").
|
automaticallyReleaseConnectionToPool, connect, getCacheResponse, getConnection, getDefaultUserAgent, getOriginAddress, getRequestBody, getRequestHeaders, getResponseBody, getResponseCode, getResponseHeaders, getUri, hasResponse, hasResponseBody, readResponse, receiveHeaders, release, requestPath, sendRequest, writingRequestHeaderspublic HttpsEngine(OkHttpClient client, Policy policy, String method, RawHeaders requestHeaders, Connection connection, com.squareup.okhttp.internal.http.RetryableOutputStream requestBody) throws IOException
IOExceptionprotected void connected(Connection connection)
HttpEngineconnected in class HttpEngineprotected boolean acceptCacheResponseType(CacheResponse cacheResponse)
HttpEnginecacheResponse is of the right type. This
condition is necessary but not sufficient for the cached response to
be used.acceptCacheResponseType in class HttpEngineprotected boolean includeAuthorityInRequestLine()
HttpEngineThis is non-final because for HTTPS it's never necessary to supply the full URL, even if a proxy is in use.
includeAuthorityInRequestLine in class HttpEnginepublic SSLSocket getSslSocket()
protected TunnelRequest getTunnelConfig()
getTunnelConfig in class HttpEngineCopyright © 2014. All rights reserved.