public static final class HttpsURLConnectionImpl.HttpsEngine extends HttpEngine
connection, HTTP_CONTINUE, method, policy, routeSelector
Constructor and Description |
---|
HttpsURLConnectionImpl.HttpsEngine(HttpURLConnectionImpl 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.
|
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, writingRequestHeaders
public HttpsURLConnectionImpl.HttpsEngine(HttpURLConnectionImpl policy, String method, RawHeaders requestHeaders, Connection connection, com.squareup.okhttp.internal.http.RetryableOutputStream requestBody) throws IOException
policy
- the HttpURLConnectionImpl with connection configurationIOException
protected void connected(Connection connection)
HttpEngine
connected
in class HttpEngine
protected boolean acceptCacheResponseType(CacheResponse cacheResponse)
HttpEngine
cacheResponse
is of the right type. This
condition is necessary but not sufficient for the cached response to
be used.acceptCacheResponseType
in class HttpEngine
protected boolean includeAuthorityInRequestLine()
HttpEngine
This 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 HttpEngine
protected TunnelRequest getTunnelConfig()
getTunnelConfig
in class HttpEngine
Copyright © 2013. All Rights Reserved.