Class HttpsEngine

java.lang.Object
com.squareup.okhttp.internal.http.HttpEngine
com.squareup.okhttp.internal.http.HttpsEngine

public final class HttpsEngine
extends HttpEngine
  • Constructor Details

  • Method Details

    • connected

      protected void connected​(Connection connection)
      Description copied from class: HttpEngine
      Called 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:
      connected in class HttpEngine
    • acceptCacheResponseType

      protected boolean acceptCacheResponseType​(CacheResponse cacheResponse)
      Description copied from class: HttpEngine
      Returns true if cacheResponse is of the right type. This condition is necessary but not sufficient for the cached response to be used.
      Overrides:
      acceptCacheResponseType in class HttpEngine
    • includeAuthorityInRequestLine

      protected boolean includeAuthorityInRequestLine()
      Description copied from class: HttpEngine
      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").

      This is non-final because for HTTPS it's never necessary to supply the full URL, even if a proxy is in use.

      Overrides:
      includeAuthorityInRequestLine in class HttpEngine
    • getSslSocket

      public SSLSocket getSslSocket()
    • getTunnelConfig

      protected TunnelRequest getTunnelConfig()
      Overrides:
      getTunnelConfig in class HttpEngine