From 7d9f3ba62aff4430665b19ee4e7dad826aba4114 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Sat, 24 May 2014 17:33:12 -0400 Subject: [PATCH] Website at Sat May 24 17:33:12 EDT 2014 --- 1.x/javadoc/allclasses-frame.html | 23 +- 1.x/javadoc/allclasses-noframe.html | 23 +- 1.x/javadoc/com/squareup/okhttp/Address.html | 421 ++++++++ 1.x/javadoc/com/squareup/okhttp/Cache.html | 660 +++++++++++++ .../com/squareup/okhttp/CacheControl.html | 377 +++++++ .../com/squareup/okhttp/Connection.html | 675 +++++++++++++ .../com/squareup/okhttp/ConnectionPool.html | 395 ++++++++ .../com/squareup/okhttp/Handshake.html | 357 +++++++ .../squareup/okhttp/HttpResponseCache.html | 268 +++++ .../com/squareup/okhttp/MediaType.html | 357 +++++++ .../okhttp/OkAuthenticator.Challenge.html | 333 +++++++ .../okhttp/OkAuthenticator.Credential.html | 296 ++++++ .../com/squareup/okhttp/OkAuthenticator.html | 290 ++++++ .../com/squareup/okhttp/OkHttpClient.html | 925 ++++++++++++++++++ .../com/squareup/okhttp/OkResponseCache.html | 330 +++++++ 1.x/javadoc/com/squareup/okhttp/Protocol.html | 407 ++++++++ .../com/squareup/okhttp/ResponseSource.html | 413 ++++++++ 1.x/javadoc/com/squareup/okhttp/Route.html | 379 +++++++ .../com/squareup/okhttp/RouteDatabase.html | 325 ++++++ .../com/squareup/okhttp/TunnelRequest.html | 249 +++++ .../okhttp/apache/OkApacheClient.html | 528 ---------- .../apache/class-use/OkApacheClient.html | 115 --- .../squareup/okhttp/apache/package-frame.html | 20 - .../squareup/okhttp/apache/package-tree.html | 124 --- .../squareup/okhttp/class-use/Address.html | 171 ++++ .../com/squareup/okhttp/class-use/Cache.html | 170 ++++ .../okhttp/class-use/CacheControl.html | 142 +++ .../squareup/okhttp/class-use/Connection.html | 163 +++ .../okhttp/class-use/ConnectionPool.html | 171 ++++ .../squareup/okhttp/class-use/Handshake.html | 150 +++ .../HttpResponseCache.html} | 30 +- .../squareup/okhttp/class-use/MediaType.html | 143 +++ .../class-use/OkAuthenticator.Challenge.html | 156 +++ .../class-use/OkAuthenticator.Credential.html | 163 +++ .../okhttp/class-use/OkAuthenticator.html | 179 ++++ .../okhttp/class-use/OkHttpClient.html | 242 +++++ .../okhttp/class-use/OkResponseCache.html | 187 ++++ .../squareup/okhttp/class-use/Protocol.html | 201 ++++ .../okhttp/class-use/ResponseSource.html | 171 ++++ .../com/squareup/okhttp/class-use/Route.html | 184 ++++ .../okhttp/class-use/RouteDatabase.html | 144 +++ .../TunnelRequest.html} | 65 +- .../com/squareup/okhttp/package-frame.html | 43 + .../com/squareup/okhttp/package-summary.html | 263 +++++ .../com/squareup/okhttp/package-tree.html | 162 +++ .../com/squareup/okhttp/package-use.html | 233 +++++ 1.x/javadoc/constant-values.html | 14 +- 1.x/javadoc/deprecated-list.html | 204 +++- 1.x/javadoc/help-doc.html | 14 +- 1.x/javadoc/index-all.html | 849 +++++++++++++++- 1.x/javadoc/index.html | 8 +- 1.x/javadoc/overview-tree.html | 52 +- 1.x/javadoc/package-list | 2 +- 53 files changed, 12064 insertions(+), 902 deletions(-) create mode 100644 1.x/javadoc/com/squareup/okhttp/Address.html create mode 100644 1.x/javadoc/com/squareup/okhttp/Cache.html create mode 100644 1.x/javadoc/com/squareup/okhttp/CacheControl.html create mode 100644 1.x/javadoc/com/squareup/okhttp/Connection.html create mode 100644 1.x/javadoc/com/squareup/okhttp/ConnectionPool.html create mode 100644 1.x/javadoc/com/squareup/okhttp/Handshake.html create mode 100644 1.x/javadoc/com/squareup/okhttp/HttpResponseCache.html create mode 100644 1.x/javadoc/com/squareup/okhttp/MediaType.html create mode 100644 1.x/javadoc/com/squareup/okhttp/OkAuthenticator.Challenge.html create mode 100644 1.x/javadoc/com/squareup/okhttp/OkAuthenticator.Credential.html create mode 100644 1.x/javadoc/com/squareup/okhttp/OkAuthenticator.html create mode 100644 1.x/javadoc/com/squareup/okhttp/OkHttpClient.html create mode 100644 1.x/javadoc/com/squareup/okhttp/OkResponseCache.html create mode 100644 1.x/javadoc/com/squareup/okhttp/Protocol.html create mode 100644 1.x/javadoc/com/squareup/okhttp/ResponseSource.html create mode 100644 1.x/javadoc/com/squareup/okhttp/Route.html create mode 100644 1.x/javadoc/com/squareup/okhttp/RouteDatabase.html create mode 100644 1.x/javadoc/com/squareup/okhttp/TunnelRequest.html delete mode 100644 1.x/javadoc/com/squareup/okhttp/apache/OkApacheClient.html delete mode 100644 1.x/javadoc/com/squareup/okhttp/apache/class-use/OkApacheClient.html delete mode 100644 1.x/javadoc/com/squareup/okhttp/apache/package-frame.html delete mode 100644 1.x/javadoc/com/squareup/okhttp/apache/package-tree.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/Address.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/Cache.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/CacheControl.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/Connection.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/ConnectionPool.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/Handshake.html rename 1.x/javadoc/com/squareup/okhttp/{apache/package-use.html => class-use/HttpResponseCache.html} (67%) create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/MediaType.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/OkAuthenticator.Challenge.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/OkAuthenticator.Credential.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/OkAuthenticator.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/OkHttpClient.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/OkResponseCache.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/Protocol.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/ResponseSource.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/Route.html create mode 100644 1.x/javadoc/com/squareup/okhttp/class-use/RouteDatabase.html rename 1.x/javadoc/com/squareup/okhttp/{apache/package-summary.html => class-use/TunnelRequest.html} (50%) create mode 100644 1.x/javadoc/com/squareup/okhttp/package-frame.html create mode 100644 1.x/javadoc/com/squareup/okhttp/package-summary.html create mode 100644 1.x/javadoc/com/squareup/okhttp/package-tree.html create mode 100644 1.x/javadoc/com/squareup/okhttp/package-use.html diff --git a/1.x/javadoc/allclasses-frame.html b/1.x/javadoc/allclasses-frame.html index 3e0819b18..4dd63e89c 100644 --- a/1.x/javadoc/allclasses-frame.html +++ b/1.x/javadoc/allclasses-frame.html @@ -2,9 +2,9 @@ - + -All Classes (OkHttp Apache HttpClient 1.6.0 API) +All Classes (OkHttp 1.6.0 API) @@ -12,7 +12,24 @@

All Classes

diff --git a/1.x/javadoc/allclasses-noframe.html b/1.x/javadoc/allclasses-noframe.html index 4e4b160e1..936bedd7b 100644 --- a/1.x/javadoc/allclasses-noframe.html +++ b/1.x/javadoc/allclasses-noframe.html @@ -2,9 +2,9 @@ - + -All Classes (OkHttp Apache HttpClient 1.6.0 API) +All Classes (OkHttp 1.6.0 API) @@ -12,7 +12,24 @@

All Classes

diff --git a/1.x/javadoc/com/squareup/okhttp/Address.html b/1.x/javadoc/com/squareup/okhttp/Address.html new file mode 100644 index 000000000..2b89c13b7 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/Address.html @@ -0,0 +1,421 @@ + + + + + + +Address (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class Address

+
+
+ +
+
    +
  • +
    +
    +
    public final class Address
    +extends Object
    +
    A specification for a connection to an origin server. For simple connections, + this is the server's hostname and port. If an explicit proxy is requested (or + no proxy is explicitly requested), this also includes + that proxy information. For secure connections the address also includes the + SSL socket factory and hostname verifier. + +

    HTTP requests that share the same Address may also share the same + Connection.

    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getUriHost

        +
        public String getUriHost()
        +
        Returns the hostname of the origin server.
        +
      • +
      + + + +
        +
      • +

        getUriPort

        +
        public int getUriPort()
        +
        Returns the port of the origin server; typically 80 or 443. Unlike + may getPort() accessors, this method never returns -1.
        +
      • +
      + + + +
        +
      • +

        getSslSocketFactory

        +
        public SSLSocketFactory getSslSocketFactory()
        +
        Returns the SSL socket factory, or null if this is not an HTTPS + address.
        +
      • +
      + + + +
        +
      • +

        getHostnameVerifier

        +
        public HostnameVerifier getHostnameVerifier()
        +
        Returns the hostname verifier, or null if this is not an HTTPS + address.
        +
      • +
      + + + +
        +
      • +

        getAuthenticator

        +
        public OkAuthenticator getAuthenticator()
        +
        Returns the client's authenticator. This method never returns null.
        +
      • +
      + + + +
        +
      • +

        getProtocols

        +
        public List<Protocol> getProtocols()
        +
        Returns the protocols the client supports. This method always returns a + non-null list that contains minimally + Protocol.HTTP_11.
        +
      • +
      + + + +
        +
      • +

        getProxy

        +
        public Proxy getProxy()
        +
        Returns this address's explicitly-specified HTTP proxy, or null to + delegate to the HTTP client's proxy selector.
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object other)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/Cache.html b/1.x/javadoc/com/squareup/okhttp/Cache.html new file mode 100644 index 000000000..2d04aafb6 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/Cache.html @@ -0,0 +1,660 @@ + + + + + + +Cache (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class Cache

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    OkResponseCache
    +
    +
    +
    Direct Known Subclasses:
    +
    HttpResponseCache
    +
    +
    +
    +
    public class Cache
    +extends ResponseCache
    +implements OkResponseCache
    +
    Caches HTTP and HTTPS responses to the filesystem so they may be reused, + saving time and bandwidth. + +

    Cache Optimization

    + To measure cache effectiveness, this class tracks three statistics: +
      +
    • Request Count: the number + of HTTP requests issued since this cache was created. +
    • Network Count: the + number of those requests that required network use. +
    • Hit Count: the number of + those requests whose responses were served by the cache. +
    + Sometimes a request will result in a conditional cache hit. If the cache + contains a stale copy of the response, the client will issue a conditional + GET. The server will then send either the updated response if it has + changed, or a short 'not modified' response if the client's copy is still + valid. Such responses increment both the network count and hit count. + +

    The best way to improve the cache hit rate is by configuring the web + server to return cacheable responses. Although this client honors all HTTP/1.1 (RFC 2068) cache + headers, it doesn't cache partial responses. + +

    Force a Network Response

    + In some situations, such as after a user clicks a 'refresh' button, it may be + necessary to skip the cache, and fetch data directly from the server. To force + a full refresh, add the no-cache directive:
       connection.addRequestProperty("Cache-Control", "no-cache");
    + 
    + If it is only necessary to force a cached response to be validated by the + server, use the more efficient max-age=0 instead:
       connection.addRequestProperty("Cache-Control", "max-age=0");
    + 
    + +

    Force a Cache Response

    + Sometimes you'll want to show resources if they are available immediately, + but not otherwise. This can be used so your application can show + something while waiting for the latest data to be downloaded. To + restrict a request to locally-cached resources, add the only-if-cached directive:
       try {
    +         connection.addRequestProperty("Cache-Control", "only-if-cached");
    +         InputStream cached = connection.getInputStream();
    +         // the resource was cached! show it
    +     } catch (FileNotFoundException e) {
    +         // the resource was not cached
    +     }
    + 
    + This technique works even better in situations where a stale response is + better than no response. To permit stale cached responses, use the max-stale directive with the maximum staleness in seconds:
       int maxStale = 60 * 60 * 24 * 28; // tolerate 4-weeks stale
    +         connection.addRequestProperty("Cache-Control", "max-stale=" + maxStale);
    + 
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        get

        +
        public com.squareup.okhttp.internal.http.Response get(com.squareup.okhttp.internal.http.Request request)
        +
        +
        Specified by:
        +
        get in interface OkResponseCache
        +
        +
      • +
      + + + + + + + +
        +
      • +

        maybeRemove

        +
        public boolean maybeRemove(com.squareup.okhttp.internal.http.Request request)
        +
        Description copied from interface: OkResponseCache
        +
        Remove any cache entries for the supplied uri. Returns true if the + supplied requestMethod potentially invalidates an entry in the + cache.
        +
        +
        Specified by:
        +
        maybeRemove in interface OkResponseCache
        +
        +
      • +
      + + + +
        +
      • +

        update

        +
        public void update(com.squareup.okhttp.internal.http.Response cached,
        +          com.squareup.okhttp.internal.http.Response network)
        +
        Description copied from interface: OkResponseCache
        +
        Handles a conditional request hit by updating the stored cache response + with the headers from network. The cached response body is not + updated. If the stored response has changed since cached was + returned, this does nothing.
        +
        +
        Specified by:
        +
        update in interface OkResponseCache
        +
        +
      • +
      + + + +
        +
      • +

        delete

        +
        public void delete()
        +            throws IOException
        +
        Closes the cache and deletes all of its stored values. This will delete + all files in the cache directory including files that weren't created by + the cache.
        +
        Throws:
        +
        IOException
        +
      • +
      + + + +
        +
      • +

        getWriteAbortCount

        +
        public int getWriteAbortCount()
        +
      • +
      + + + +
        +
      • +

        getWriteSuccessCount

        +
        public int getWriteSuccessCount()
        +
      • +
      + + + +
        +
      • +

        getSize

        +
        public long getSize()
        +
      • +
      + + + +
        +
      • +

        getMaxSize

        +
        public long getMaxSize()
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getDirectory

        +
        public File getDirectory()
        +
      • +
      + + + +
        +
      • +

        isClosed

        +
        public boolean isClosed()
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getNetworkCount

        +
        public int getNetworkCount()
        +
      • +
      + + + +
        +
      • +

        getHitCount

        +
        public int getHitCount()
        +
      • +
      + + + +
        +
      • +

        getRequestCount

        +
        public int getRequestCount()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/CacheControl.html b/1.x/javadoc/com/squareup/okhttp/CacheControl.html new file mode 100644 index 000000000..a3f2d4b8b --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/CacheControl.html @@ -0,0 +1,377 @@ + + + + + + +CacheControl (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class CacheControl

+
+
+ +
+
    +
  • +
    +
    +
    public final class CacheControl
    +extends Object
    +
    A Cache-Control header with cache directives from a server or client. These + directives set policy on what responses can be stored, and which requests can + be satisfied by those stored responses. + +

    See RFC + 2616, 14.9.

    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        noCache

        +
        public boolean noCache()
        +
        In a response, this field's name "no-cache" is misleading. It doesn't + prevent us from caching the response; it only means we have to validate the + response with the origin server before returning it. We can do this with a + conditional GET. + +

        In a request, it means do not use a cache to satisfy the request.

        +
      • +
      + + + +
        +
      • +

        noStore

        +
        public boolean noStore()
        +
        If true, this response should not be cached.
        +
      • +
      + + + +
        +
      • +

        maxAgeSeconds

        +
        public int maxAgeSeconds()
        +
        The duration past the response's served date that it can be served without + validation.
        +
      • +
      + + + +
        +
      • +

        sMaxAgeSeconds

        +
        public int sMaxAgeSeconds()
        +
        The "s-maxage" directive is the max age for shared caches. Not to be + confused with "max-age" for non-shared caches, As in Firefox and Chrome, + this directive is not honored by this cache.
        +
      • +
      + + + +
        +
      • +

        isPublic

        +
        public boolean isPublic()
        +
      • +
      + + + +
        +
      • +

        mustRevalidate

        +
        public boolean mustRevalidate()
        +
      • +
      + + + +
        +
      • +

        maxStaleSeconds

        +
        public int maxStaleSeconds()
        +
      • +
      + + + +
        +
      • +

        minFreshSeconds

        +
        public int minFreshSeconds()
        +
      • +
      + + + +
        +
      • +

        onlyIfCached

        +
        public boolean onlyIfCached()
        +
        This field's name "only-if-cached" is misleading. It actually means "do + not use the network". It is set by a client who only wants to make a + request if it can be fully satisfied by the cache. Cached responses that + would require validation (ie. conditional gets) are not permitted if this + header is set.
        +
      • +
      + + + +
        +
      • +

        parse

        +
        public static CacheControl parse(com.squareup.okhttp.internal.http.Headers headers)
        +
        Returns the cache directives of headers. This honors both + Cache-Control and Pragma headers if they are present.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/Connection.html b/1.x/javadoc/com/squareup/okhttp/Connection.html new file mode 100644 index 000000000..53fe2252f --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/Connection.html @@ -0,0 +1,675 @@ + + + + + + +Connection (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class Connection

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Closeable, AutoCloseable
    +
    +
    +
    +
    public final class Connection
    +extends Object
    +implements Closeable
    +
    The sockets and streams of an HTTP, HTTPS, or HTTPS+SPDY connection. May be + used for multiple HTTP request/response exchanges. Connections may be direct + to the origin server or via a proxy. + +

    Typically instances of this class are created, connected and exercised + automatically by the HTTP client. Applications may use this class to monitor + HTTP connections as members of a connection pool. + +

    Do not confuse this class with the misnamed HttpURLConnection, + which isn't so much a connection as a single request/response exchange. + +

    Modern TLS

    + There are tradeoffs when selecting which options to include when negotiating + a secure connection to a remote host. Newer TLS options are quite useful: +
      +
    • Server Name Indication (SNI) enables one IP address to negotiate secure + connections for multiple domain names. +
    • Next Protocol Negotiation (NPN) enables the HTTPS port (443) to be used + for both HTTP and SPDY protocols. +
    + Unfortunately, older HTTPS servers refuse to connect when such options are + presented. Rather than avoiding these options entirely, this class allows a + connection to be attempted with modern options and then retried without them + should the attempt fail.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getOwner

        +
        public Object getOwner()
        +
      • +
      + + + +
        +
      • +

        setOwner

        +
        public void setOwner(Object owner)
        +
      • +
      + + + +
        +
      • +

        clearOwner

        +
        public boolean clearOwner()
        +
        Attempts to clears the owner of this connection. Returns true if the owner + was cleared and the connection can be pooled or reused. This will return + false if the connection cannot be pooled or reused, such as if it was + closed with closeIfOwnedBy(java.lang.Object).
        +
      • +
      + + + +
        +
      • +

        closeIfOwnedBy

        +
        public void closeIfOwnedBy(Object owner)
        +                    throws IOException
        +
        Closes this connection if it is currently owned by owner. This also + strips the ownership of the connection so it cannot be pooled or reused.
        +
        Throws:
        +
        IOException
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        getRoute

        +
        public Route getRoute()
        +
        Returns the route used by this connection.
        +
      • +
      + + + +
        +
      • +

        getSocket

        +
        public Socket getSocket()
        +
        Returns the socket that this connection uses, or null if the connection + is not currently connected.
        +
      • +
      + + + +
        +
      • +

        isAlive

        +
        public boolean isAlive()
        +
        Returns true if this connection is alive.
        +
      • +
      + + + +
        +
      • +

        isReadable

        +
        public boolean isReadable()
        +
        Returns true if we are confident that we can read data from this + connection. This is more expensive and more accurate than isAlive(); callers should check isAlive() first.
        +
      • +
      + + + +
        +
      • +

        resetIdleStartTime

        +
        public void resetIdleStartTime()
        +
      • +
      + + + +
        +
      • +

        isIdle

        +
        public boolean isIdle()
        +
        Returns true if this connection is idle.
        +
      • +
      + + + +
        +
      • +

        isExpired

        +
        public boolean isExpired(long keepAliveDurationNs)
        +
        Returns true if this connection has been idle for longer than + keepAliveDurationNs.
        +
      • +
      + + + +
        +
      • +

        getIdleStartTimeNs

        +
        public long getIdleStartTimeNs()
        +
        Returns the time in ns when this connection became idle. Undefined if + this connection is not idle.
        +
      • +
      + + + +
        +
      • +

        getHandshake

        +
        public Handshake getHandshake()
        +
      • +
      + + + +
        +
      • +

        newTransport

        +
        public Object newTransport(com.squareup.okhttp.internal.http.HttpEngine httpEngine)
        +                    throws IOException
        +
        Returns the transport appropriate for this connection.
        +
        Throws:
        +
        IOException
        +
      • +
      + + + +
        +
      • +

        isSpdy

        +
        public boolean isSpdy()
        +
        Returns true if this is a SPDY connection. Such connections can be used + in multiple HTTP requests simultaneously.
        +
      • +
      + + + +
        +
      • +

        getHttpMinorVersion

        +
        public int getHttpMinorVersion()
        +
        Returns the minor HTTP version that should be used for future requests on + this connection. Either 0 for HTTP/1.0, or 1 for HTTP/1.1. The default + value is 1 for new connections.
        +
      • +
      + + + +
        +
      • +

        setHttpMinorVersion

        +
        public void setHttpMinorVersion(int httpMinorVersion)
        +
      • +
      + + + +
        +
      • +

        requiresTunnel

        +
        public boolean requiresTunnel()
        +
        Returns true if the HTTP connection needs to tunnel one protocol over + another, such as when using HTTPS through an HTTP proxy. When doing so, + we must avoid buffering bytes intended for the higher-level protocol.
        +
      • +
      + + + +
        +
      • +

        updateReadTimeout

        +
        public void updateReadTimeout(int newTimeout)
        +                       throws IOException
        +
        Throws:
        +
        IOException
        +
      • +
      + + + +
        +
      • +

        incrementRecycleCount

        +
        public void incrementRecycleCount()
        +
      • +
      + + + +
        +
      • +

        recycleCount

        +
        public int recycleCount()
        +
        Returns the number of times this connection has been returned to the + connection pool.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/ConnectionPool.html b/1.x/javadoc/com/squareup/okhttp/ConnectionPool.html new file mode 100644 index 000000000..8b40809db --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/ConnectionPool.html @@ -0,0 +1,395 @@ + + + + + + +ConnectionPool (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class ConnectionPool

+
+
+ +
+
    +
  • +
    +
    +
    public class ConnectionPool
    +extends Object
    +
    Manages reuse of HTTP and SPDY connections for reduced network latency. HTTP + requests that share the same Address may share a + Connection. This class implements the policy of + which connections to keep open for future use. + +

    The system-wide default uses system properties for + tuning parameters: +

      +
    • http.keepAlive true if HTTP and SPDY connections should be + pooled at all. Default is true. +
    • http.maxConnections maximum number of idle connections to + each to keep in the pool. Default is 5. +
    • http.keepAliveDuration Time in milliseconds to keep the + connection alive in the pool before closing it. Default is 5 minutes. + This property isn't used by HttpURLConnection. +
    + +

    The default instance doesn't adjust its configuration as system + properties are changed. This assumes that the applications that set these + parameters do so before making HTTP connections, and that this class is + initialized lazily.

    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ConnectionPool

        +
        public ConnectionPool(int maxIdleConnections,
        +              long keepAliveDurationMs)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getConnectionCount

        +
        public int getConnectionCount()
        +
        Returns total number of connections in the pool.
        +
      • +
      + + + +
        +
      • +

        getSpdyConnectionCount

        +
        public int getSpdyConnectionCount()
        +
        Returns total number of spdy connections in the pool.
        +
      • +
      + + + +
        +
      • +

        getHttpConnectionCount

        +
        public int getHttpConnectionCount()
        +
        Returns total number of http connections in the pool.
        +
      • +
      + + + +
        +
      • +

        get

        +
        public Connection get(Address address)
        +
        Returns a recycled connection to address, or null if no such connection exists.
        +
      • +
      + + + +
        +
      • +

        recycle

        +
        public void recycle(Connection connection)
        +
        Gives connection to the pool. The pool may store the connection, + or close it, as its policy describes. + +

        It is an error to use connection after calling this method.

        +
      • +
      + + + +
        +
      • +

        share

        +
        public void share(Connection connection)
        +
        Shares the SPDY connection with the pool. Callers to this method may + continue to use connection.
        +
      • +
      + + + +
        +
      • +

        evictAll

        +
        public void evictAll()
        +
        Close and remove all connections in the pool.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/Handshake.html b/1.x/javadoc/com/squareup/okhttp/Handshake.html new file mode 100644 index 000000000..5439d5b1a --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/Handshake.html @@ -0,0 +1,357 @@ + + + + + + +Handshake (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class Handshake

+
+
+ +
+
    +
  • +
    +
    +
    public final class Handshake
    +extends Object
    +
    A record of a TLS handshake. For HTTPS clients, the client is local + and the remote server is its peer. + +

    This value object describes a completed handshake. Use SSLSocketFactory to set policy for new handshakes.

    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        cipherSuite

        +
        public String cipherSuite()
        +
        Returns a cipher suite name like "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA".
        +
      • +
      + + + +
        +
      • +

        peerCertificates

        +
        public List<Certificate> peerCertificates()
        +
        Returns a possibly-empty list of certificates that identify the remote peer.
        +
      • +
      + + + +
        +
      • +

        peerPrincipal

        +
        public Principal peerPrincipal()
        +
        Returns the remote peer's principle, or null if that peer is anonymous.
        +
      • +
      + + + +
        +
      • +

        localCertificates

        +
        public List<Certificate> localCertificates()
        +
        Returns a possibly-empty list of certificates that identify this peer.
        +
      • +
      + + + +
        +
      • +

        localPrincipal

        +
        public Principal localPrincipal()
        +
        Returns the local principle, or null if this peer is anonymous.
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object other)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/HttpResponseCache.html b/1.x/javadoc/com/squareup/okhttp/HttpResponseCache.html new file mode 100644 index 000000000..beba2022a --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/HttpResponseCache.html @@ -0,0 +1,268 @@ + + + + + + +HttpResponseCache (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class HttpResponseCache

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HttpResponseCache

        +
        public HttpResponseCache(File directory,
        +                 long maxSize)
        +                  throws IOException
        +
        Deprecated. 
        +
        Throws:
        +
        IOException
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/MediaType.html b/1.x/javadoc/com/squareup/okhttp/MediaType.html new file mode 100644 index 000000000..e08b76c77 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/MediaType.html @@ -0,0 +1,357 @@ + + + + + + +MediaType (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class MediaType

+
+
+ +
+
    +
  • +
    +
    +
    public final class MediaType
    +extends Object
    +
    An RFC 2045 Media Type, + appropriate to describe the content type of an HTTP request or response body.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      Charsetcharset() +
      Returns the charset of this media type, or null if this media type doesn't + specify a charset.
      +
      Charsetcharset(Charset defaultValue) +
      Returns the charset of this media type, or defaultValue if this + media type doesn't specify a charset.
      +
      booleanequals(Object o) 
      inthashCode() 
      static MediaTypeparse(String string) +
      Returns a media type for string, or null if string is not a + well-formed media type.
      +
      Stringsubtype() +
      Returns a specific media subtype, such as "plain" or "png", "mpeg", + "mp4" or "xml".
      +
      StringtoString() +
      Returns the encoded media type, like "text/plain; charset=utf-8", + appropriate for use in a Content-Type header.
      +
      Stringtype() +
      Returns the high-level media type, such as "text", "image", "audio", + "video", or "application".
      +
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        public static MediaType parse(String string)
        +
        Returns a media type for string, or null if string is not a + well-formed media type.
        +
      • +
      + + + +
        +
      • +

        type

        +
        public String type()
        +
        Returns the high-level media type, such as "text", "image", "audio", + "video", or "application".
        +
      • +
      + + + +
        +
      • +

        subtype

        +
        public String subtype()
        +
        Returns a specific media subtype, such as "plain" or "png", "mpeg", + "mp4" or "xml".
        +
      • +
      + + + +
        +
      • +

        charset

        +
        public Charset charset()
        +
        Returns the charset of this media type, or null if this media type doesn't + specify a charset.
        +
      • +
      + + + +
        +
      • +

        charset

        +
        public Charset charset(Charset defaultValue)
        +
        Returns the charset of this media type, or defaultValue if this + media type doesn't specify a charset.
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public String toString()
        +
        Returns the encoded media type, like "text/plain; charset=utf-8", + appropriate for use in a Content-Type header.
        +
        +
        Overrides:
        +
        toString in class Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object o)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/OkAuthenticator.Challenge.html b/1.x/javadoc/com/squareup/okhttp/OkAuthenticator.Challenge.html new file mode 100644 index 000000000..e7f244601 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/OkAuthenticator.Challenge.html @@ -0,0 +1,333 @@ + + + + + + +OkAuthenticator.Challenge (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class OkAuthenticator.Challenge

+
+
+ +
+
    +
  • +
    +
    Enclosing interface:
    +
    OkAuthenticator
    +
    +
    +
    +
    public static final class OkAuthenticator.Challenge
    +extends Object
    +
    An RFC 2617 challenge.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OkAuthenticator.Challenge

        +
        public OkAuthenticator.Challenge(String scheme,
        +                         String realm)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getScheme

        +
        public String getScheme()
        +
        Returns the authentication scheme, like Basic.
        +
      • +
      + + + +
        +
      • +

        getRealm

        +
        public String getRealm()
        +
        Returns the protection space.
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object o)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/OkAuthenticator.Credential.html b/1.x/javadoc/com/squareup/okhttp/OkAuthenticator.Credential.html new file mode 100644 index 000000000..171354f00 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/OkAuthenticator.Credential.html @@ -0,0 +1,296 @@ + + + + + + +OkAuthenticator.Credential (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class OkAuthenticator.Credential

+
+
+ +
+
    +
  • +
    +
    Enclosing interface:
    +
    OkAuthenticator
    +
    +
    +
    +
    public static final class OkAuthenticator.Credential
    +extends Object
    +
    An RFC 2617 credential.
    +
  • +
+
+
+ +
+
+ +
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/OkAuthenticator.html b/1.x/javadoc/com/squareup/okhttp/OkAuthenticator.html new file mode 100644 index 000000000..8b1242890 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/OkAuthenticator.html @@ -0,0 +1,290 @@ + + + + + + +OkAuthenticator (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Interface OkAuthenticator

+
+
+
+
    +
  • +
    +
    Deprecated.  +
    replaced with Authenticator in OkHttp 2.0.
    +
    +
    +
    @Deprecated
    +public interface OkAuthenticator
    +
    Responds to authentication challenges from the remote web or proxy server by + returning credentials.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        authenticate

        +
        OkAuthenticator.Credential authenticate(Proxy proxy,
        +                                      URL url,
        +                                      List<OkAuthenticator.Challenge> challenges)
        +                                        throws IOException
        +
        Deprecated. 
        +
        Returns a credential that satisfies the authentication challenge made by + url. Returns null if the challenge cannot be satisfied. This method + is called in response to an HTTP 401 unauthorized status code sent by the + origin server.
        +
        Parameters:
        challenges - parsed "WWW-Authenticate" challenge headers from the HTTP + response.
        +
        Throws:
        +
        IOException
        +
      • +
      + + + +
        +
      • +

        authenticateProxy

        +
        OkAuthenticator.Credential authenticateProxy(Proxy proxy,
        +                                           URL url,
        +                                           List<OkAuthenticator.Challenge> challenges)
        +                                             throws IOException
        +
        Deprecated. 
        +
        Returns a credential that satisfies the authentication challenge made by + proxy. Returns null if the challenge cannot be satisfied. This + method is called in response to an HTTP 401 unauthorized status code sent + by the proxy server.
        +
        Parameters:
        challenges - parsed "Proxy-Authenticate" challenge headers from the + HTTP response.
        +
        Throws:
        +
        IOException
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/OkHttpClient.html b/1.x/javadoc/com/squareup/okhttp/OkHttpClient.html new file mode 100644 index 000000000..4eda1157c --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/OkHttpClient.html @@ -0,0 +1,925 @@ + + + + + + +OkHttpClient (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class OkHttpClient

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Cloneable, URLStreamHandlerFactory
    +
    +
    +
    +
    public final class OkHttpClient
    +extends Object
    +implements URLStreamHandlerFactory, Cloneable
    +
    Configures and creates HTTP connections. Most applications can use a single + OkHttpClient for all of their HTTP requests - benefiting from a shared + response cache, thread pool, connection re-use, etc. + + Instances of OkHttpClient are intended to be fully configured before they're + shared - once shared they should be treated as immutable and can safely be used + to concurrently open new connections. If required, threads can call + clone() to make a shallow copy of the OkHttpClient that can be + safely modified with further configuration changes.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OkHttpClient

        +
        public OkHttpClient()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setConnectTimeout

        +
        public void setConnectTimeout(long timeout,
        +                     TimeUnit unit)
        +
        Sets the default connect timeout for new connections. A value of 0 means no timeout.
        +
        See Also:
        URLConnection.setConnectTimeout(int)
        +
      • +
      + + + +
        +
      • +

        getConnectTimeout

        +
        public int getConnectTimeout()
        +
        Default connect timeout (in milliseconds).
        +
      • +
      + + + +
        +
      • +

        setReadTimeout

        +
        public void setReadTimeout(long timeout,
        +                  TimeUnit unit)
        +
        Sets the default read timeout for new connections. A value of 0 means no timeout.
        +
        See Also:
        URLConnection.setReadTimeout(int)
        +
      • +
      + + + +
        +
      • +

        getReadTimeout

        +
        public int getReadTimeout()
        +
        Default read timeout (in milliseconds).
        +
      • +
      + + + +
        +
      • +

        setProxy

        +
        public OkHttpClient setProxy(Proxy proxy)
        +
        Sets the HTTP proxy that will be used by connections created by this + client. This takes precedence over setProxySelector(java.net.ProxySelector), which is + only honored when this proxy is null (which it is by default). To disable + proxy use completely, call setProxy(Proxy.NO_PROXY).
        +
      • +
      + + + +
        +
      • +

        getProxy

        +
        public Proxy getProxy()
        +
      • +
      + + + +
        +
      • +

        setProxySelector

        +
        public OkHttpClient setProxySelector(ProxySelector proxySelector)
        +
        Sets the proxy selection policy to be used if no proxy + is specified explicitly. The proxy selector may return multiple proxies; + in that case they will be tried in sequence until a successful connection + is established. + +

        If unset, the system-wide default + proxy selector will be used.

        +
      • +
      + + + +
        +
      • +

        getProxySelector

        +
        public ProxySelector getProxySelector()
        +
      • +
      + + + +
        +
      • +

        setCookieHandler

        +
        public OkHttpClient setCookieHandler(CookieHandler cookieHandler)
        +
        Sets the cookie handler to be used to read outgoing cookies and write + incoming cookies. + +

        If unset, the system-wide default + cookie handler will be used.

        +
      • +
      + + + +
        +
      • +

        getCookieHandler

        +
        public CookieHandler getCookieHandler()
        +
      • +
      + + + + + + + +
        +
      • +

        getResponseCache

        +
        @Deprecated
        +public ResponseCache getResponseCache()
        +
        Deprecated. replaced by getCache() which doesn't support custom + cache implementations.
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        getCache

        +
        public Cache getCache()
        +
      • +
      + + + +
        +
      • +

        setSslSocketFactory

        +
        public OkHttpClient setSslSocketFactory(SSLSocketFactory sslSocketFactory)
        +
        Sets the socket factory used to secure HTTPS connections. + +

        If unset, a lazily created SSL socket factory will be used.

        +
      • +
      + + + + + + + +
        +
      • +

        setHostnameVerifier

        +
        public OkHttpClient setHostnameVerifier(HostnameVerifier hostnameVerifier)
        +
        Sets the verifier used to confirm that response certificates apply to + requested hostnames for HTTPS connections. + +

        If unset, the + system-wide default hostname verifier will be used.

        +
      • +
      + + + + + + + +
        +
      • +

        setAuthenticator

        +
        public OkHttpClient setAuthenticator(OkAuthenticator authenticator)
        +
        Sets the authenticator used to respond to challenges from the remote web + server or proxy server. + +

        If unset, the system-wide default + authenticator will be used.

        +
      • +
      + + + + + + + +
        +
      • +

        setConnectionPool

        +
        public OkHttpClient setConnectionPool(ConnectionPool connectionPool)
        +
        Sets the connection pool used to recycle HTTP and HTTPS connections. + +

        If unset, the system-wide + default connection pool will be used.

        +
      • +
      + + + +
        +
      • +

        getConnectionPool

        +
        public ConnectionPool getConnectionPool()
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        setFollowSslRedirects

        +
        public OkHttpClient setFollowSslRedirects(boolean followProtocolRedirects)
        +
        Configure this client to follow redirects from HTTPS to HTTP and from HTTP + to HTTPS. + +

        If unset, protocol redirects will be followed. This is different than + the built-in HttpURLConnection's default.

        +
      • +
      + + + +
        +
      • +

        getFollowSslRedirects

        +
        public boolean getFollowSslRedirects()
        +
      • +
      + + + +
        +
      • +

        getRoutesDatabase

        +
        @Deprecated
        +public RouteDatabase getRoutesDatabase()
        +
        Deprecated. removed from the public API in OkHttp 2.0.
        +
      • +
      + + + + + + + +
        +
      • +

        setProtocols

        +
        public OkHttpClient setProtocols(List<Protocol> protocols)
        +
        Configure the protocols used by this client to communicate with remote + servers. By default this client will prefer the most efficient transport + available, falling back to more ubiquitous protocols. Applications should + only call this method to avoid specific compatibility problems, such as web + servers that behave incorrectly when SPDY is enabled. + +

        The following protocols are currently supported: +

        + +

        This is an evolving set. Future releases may drop + support for transitional protocols (like spdy/3.1), in favor of their + successors (spdy/4 or http/2.0). The http/1.1 transport will never be + dropped. + +

        If multiple protocols are specified, NPN will + be used to negotiate a transport. Future releases may use another mechanism + (such as ALPN) + to negotiate a transport.

        +
        Parameters:
        protocols - the protocols to use, in order of preference. The list + must contain "http/1.1". It must not contain null.
        +
      • +
      + + + + + + + +
        +
      • +

        getProtocols

        +
        public List<Protocol> getProtocols()
        +
      • +
      + + + + + + + +
        +
      • +

        clone

        +
        public OkHttpClient clone()
        +
        Returns a shallow copy of this OkHttpClient.
        +
        +
        Overrides:
        +
        clone in class Object
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/OkResponseCache.html b/1.x/javadoc/com/squareup/okhttp/OkResponseCache.html new file mode 100644 index 000000000..46d098443 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/OkResponseCache.html @@ -0,0 +1,330 @@ + + + + + + +OkResponseCache (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Interface OkResponseCache

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    Cache, HttpResponseCache
    +
    +
    +
    Deprecated.  +
    removed from the public API in OkHttp 2.0.
    +
    +
    +
    @Deprecated
    +public interface OkResponseCache
    +
    An extended response cache API. Unlike ResponseCache, this + interface supports conditional caching and statistics. + +

    Warning: Experimental OkHttp 2.0 API

    + This class is in beta. APIs are subject to change!
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      com.squareup.okhttp.internal.http.Responseget(com.squareup.okhttp.internal.http.Request request) +
      Deprecated. 
      booleanmaybeRemove(com.squareup.okhttp.internal.http.Request request) +
      Deprecated. 
      +
      Remove any cache entries for the supplied uri.
      +
      CacheRequestput(com.squareup.okhttp.internal.http.Response response) +
      Deprecated. 
      voidtrackConditionalCacheHit() +
      Deprecated. 
      +
      Track an conditional GET that was satisfied by this cache.
      +
      voidtrackResponse(ResponseSource source) +
      Deprecated. 
      +
      Track an HTTP response being satisfied by source.
      +
      voidupdate(com.squareup.okhttp.internal.http.Response cached, + com.squareup.okhttp.internal.http.Response network) +
      Deprecated. 
      +
      Handles a conditional request hit by updating the stored cache response + with the headers from network.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        com.squareup.okhttp.internal.http.Response get(com.squareup.okhttp.internal.http.Request request)
        +                                               throws IOException
        +
        Deprecated. 
        +
        Throws:
        +
        IOException
        +
      • +
      + + + + + + + +
        +
      • +

        maybeRemove

        +
        boolean maybeRemove(com.squareup.okhttp.internal.http.Request request)
        +                    throws IOException
        +
        Deprecated. 
        +
        Remove any cache entries for the supplied uri. Returns true if the + supplied requestMethod potentially invalidates an entry in the + cache.
        +
        Throws:
        +
        IOException
        +
      • +
      + + + +
        +
      • +

        update

        +
        void update(com.squareup.okhttp.internal.http.Response cached,
        +          com.squareup.okhttp.internal.http.Response network)
        +            throws IOException
        +
        Deprecated. 
        +
        Handles a conditional request hit by updating the stored cache response + with the headers from network. The cached response body is not + updated. If the stored response has changed since cached was + returned, this does nothing.
        +
        Throws:
        +
        IOException
        +
      • +
      + + + +
        +
      • +

        trackConditionalCacheHit

        +
        void trackConditionalCacheHit()
        +
        Deprecated. 
        +
        Track an conditional GET that was satisfied by this cache.
        +
      • +
      + + + +
        +
      • +

        trackResponse

        +
        void trackResponse(ResponseSource source)
        +
        Deprecated. 
        +
        Track an HTTP response being satisfied by source.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/Protocol.html b/1.x/javadoc/com/squareup/okhttp/Protocol.html new file mode 100644 index 000000000..059965a74 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/Protocol.html @@ -0,0 +1,407 @@ + + + + + + +Protocol (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Enum Protocol

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Comparable<Protocol>
    +
    +
    +
    +
    public enum Protocol
    +extends Enum<Protocol>
    +
    Contains protocols that OkHttp supports + NPN or + ALPN selection. + +

    +

    Protocol vs Scheme

    + Despite its name, URL.getProtocol() returns the + scheme (http, https, etc.) of the URL, not + the protocol (http/1.1, spdy/3.1, etc.). OkHttp uses the word protocol to + indicate how HTTP messages are framed.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        HTTP_2

        +
        public static final Protocol HTTP_2
        +
      • +
      + + + +
        +
      • +

        SPDY_3

        +
        public static final Protocol SPDY_3
        +
      • +
      + + + +
        +
      • +

        HTTP_11

        +
        public static final Protocol HTTP_11
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        name

        +
        @Deprecated
        +public final com.squareup.okhttp.internal.okio.ByteString name
        +
        Deprecated. removed from the public API in OkHttp 2.0.
        +
        Identifier string used in NPN or ALPN selection.
        +
      • +
      + + + +
        +
      • +

        spdyVariant

        +
        @Deprecated
        +public final boolean spdyVariant
        +
        Deprecated. removed from the public API in OkHttp 2.0.
        +
        When true the protocol is binary framed and derived from SPDY.
        +
        See Also:
        Variant
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static Protocol[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Protocol c : Protocol.values())
        +    System.out.println(c);
        +
        +
        Returns:
        an array containing the constants of this enum type, in +the order they are declared
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Protocol valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        Parameters:
        name - the name of the enum constant to be returned.
        +
        Returns:
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant +with the specified name
        +
        NullPointerException - if the argument is null
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/ResponseSource.html b/1.x/javadoc/com/squareup/okhttp/ResponseSource.html new file mode 100644 index 000000000..b896fa616 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/ResponseSource.html @@ -0,0 +1,413 @@ + + + + + + +ResponseSource (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Enum ResponseSource

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Comparable<ResponseSource>
    +
    +
    +
    Deprecated.  +
    removed from the public API in OkHttp 2.0. Use the response's + networkResponse() and cacheResponse() to compute how the + request was satisfied.
    +
    +
    +
    @Deprecated
    +public enum ResponseSource
    +extends Enum<ResponseSource>
    +
    The source of an HTTP response.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        CACHE

        +
        public static final ResponseSource CACHE
        +
        Deprecated. 
        +
        The response was returned from the local cache.
        +
      • +
      + + + +
        +
      • +

        CONDITIONAL_CACHE

        +
        public static final ResponseSource CONDITIONAL_CACHE
        +
        Deprecated. 
        +
        The response is available in the cache but must be validated with the + network. The cache result will be used if it is still valid; otherwise + the network's response will be used.
        +
      • +
      + + + +
        +
      • +

        NETWORK

        +
        public static final ResponseSource NETWORK
        +
        Deprecated. 
        +
        The response was returned from the network.
        +
      • +
      + + + +
        +
      • +

        NONE

        +
        public static final ResponseSource NONE
        +
        Deprecated. 
        +
        The request demanded a cached response that the cache couldn't satisfy. + This yields a 504 (Gateway Timeout) response as specified by + http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.4.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ResponseSource[] values()
        +
        Deprecated. 
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ResponseSource c : ResponseSource.values())
        +    System.out.println(c);
        +
        +
        Returns:
        an array containing the constants of this enum type, in +the order they are declared
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ResponseSource valueOf(String name)
        +
        Deprecated. 
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        Parameters:
        name - the name of the enum constant to be returned.
        +
        Returns:
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant +with the specified name
        +
        NullPointerException - if the argument is null
        +
      • +
      + + + +
        +
      • +

        requiresConnection

        +
        public boolean requiresConnection()
        +
        Deprecated. 
        +
      • +
      + + + +
        +
      • +

        usesCache

        +
        public boolean usesCache()
        +
        Deprecated. 
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/Route.html b/1.x/javadoc/com/squareup/okhttp/Route.html new file mode 100644 index 000000000..13ee7dcd4 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/Route.html @@ -0,0 +1,379 @@ + + + + + + +Route (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class Route

+
+
+ +
+
    +
  • +
    +
    +
    public class Route
    +extends Object
    +
    The concrete route used by a connection to reach an abstract origin server. + When creating a connection the client has many options: +
      +
    • HTTP proxy: a proxy server may be explicitly + configured for the client. Otherwise the proxy selector is used. It may return multiple proxies to attempt. +
    • IP address: whether connecting directly to an origin + server or a proxy, opening a socket requires an IP address. The DNS + server may return multiple IP addresses to attempt. +
    • Modern TLS: whether to include advanced TLS options + when attempting a HTTPS connection. +
    + Each route is a specific selection of these options.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getAddress

        +
        public Address getAddress()
        +
        Returns the Address of this route.
        +
      • +
      + + + +
        +
      • +

        getProxy

        +
        public Proxy getProxy()
        +
        Returns the Proxy of this route. + + Warning: This may disagree with Address.getProxy() + is null. When the address's proxy is null, the proxy selector will be used.
        +
      • +
      + + + + + + + +
        +
      • +

        isModernTls

        +
        @Deprecated
        +public boolean isModernTls()
        +
        Deprecated. replaced with getTlsVersion() in OkHttp 2.0.
        +
        Returns true if this route uses modern TLS.
        +
      • +
      + + + +
        +
      • +

        getTlsVersion

        +
        public String getTlsVersion()
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object obj)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/RouteDatabase.html b/1.x/javadoc/com/squareup/okhttp/RouteDatabase.html new file mode 100644 index 000000000..b789cdeca --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/RouteDatabase.html @@ -0,0 +1,325 @@ + + + + + + +RouteDatabase (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class RouteDatabase

+
+
+ +
+
    +
  • +
    +
    Deprecated.  +
    removed from the public API in OkHttp 2.0.
    +
    +
    +
    @Deprecated
    +public final class RouteDatabase
    +extends Object
    +
    A blacklist of failed routes to avoid when creating a new connection to a + target address. This is used so that OkHttp can learn from its mistakes: if + there was a failure attempting to connect to a specific IP address, proxy + server or TLS mode, that failure is remembered and alternate routes are + preferred.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RouteDatabase

        +
        public RouteDatabase()
        +
        Deprecated. 
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        failed

        +
        public void failed(Route failedRoute)
        +
        Deprecated. 
        +
        Records a failure connecting to failedRoute.
        +
      • +
      + + + +
        +
      • +

        connected

        +
        public void connected(Route route)
        +
        Deprecated. 
        +
        Records success connecting to failedRoute.
        +
      • +
      + + + +
        +
      • +

        shouldPostpone

        +
        public boolean shouldPostpone(Route route)
        +
        Deprecated. 
        +
        Returns true if route has failed recently and should be avoided.
        +
      • +
      + + + +
        +
      • +

        failedRoutesCount

        +
        public int failedRoutesCount()
        +
        Deprecated. 
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/TunnelRequest.html b/1.x/javadoc/com/squareup/okhttp/TunnelRequest.html new file mode 100644 index 000000000..9e6c0d695 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/TunnelRequest.html @@ -0,0 +1,249 @@ + + + + + + +TunnelRequest (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.squareup.okhttp
+

Class TunnelRequest

+
+
+ +
+
    +
  • +
    +
    Deprecated.  +
    removed from the public API in OkHttp 2.0.
    +
    +
    +
    @Deprecated
    +public final class TunnelRequest
    +extends Object
    +
    Routing and authentication information sent to an HTTP proxy to create a + HTTPS to an origin server. Everything in the tunnel request is sent + unencrypted to the proxy server. + +

    See RFC 2817, Section + 5.2.

    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TunnelRequest

        +
        public TunnelRequest(String host,
        +             int port,
        +             String userAgent,
        +             String proxyAuthorization)
        +
        Deprecated. 
        +
        Parameters:
        host - the origin server's hostname. Not null.
        port - the origin server's port, like 80 or 443.
        userAgent - the client's user-agent. Not null.
        proxyAuthorization - proxy authorization, or null if the proxy is + used without an authorization header.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/apache/OkApacheClient.html b/1.x/javadoc/com/squareup/okhttp/apache/OkApacheClient.html deleted file mode 100644 index 53f732334..000000000 --- a/1.x/javadoc/com/squareup/okhttp/apache/OkApacheClient.html +++ /dev/null @@ -1,528 +0,0 @@ - - - - - - -OkApacheClient (OkHttp Apache HttpClient 1.6.0 API) - - - - - - - -
- - - - - -
- - - -
-
com.squareup.okhttp.apache
-

Class OkApacheClient

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    org.apache.http.client.HttpClient
    -
    -
    -
    -
    public class OkApacheClient
    -extends Object
    -implements org.apache.http.client.HttpClient
    -
    Implements Apache's HttpClient API using OkHttpClient. -

    - Warning: Many core features of Apache HTTP client are not implemented by this - API. This includes the keep-alive strategy, cookie store, credentials provider, route planner - and others.

    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Field Summary

      - - - - - - - - - - -
      Fields 
      Modifier and TypeField and Description
      protected OkHttpClientclient 
      -
    • -
    - - - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      org.apache.http.HttpResponseexecute(org.apache.http.HttpHost host, - org.apache.http.HttpRequest request) 
      org.apache.http.HttpResponseexecute(org.apache.http.HttpHost host, - org.apache.http.HttpRequest request, - org.apache.http.protocol.HttpContext context) 
      <T> Texecute(org.apache.http.HttpHost host, - org.apache.http.HttpRequest request, - org.apache.http.client.ResponseHandler<? extends T> handler) 
      <T> Texecute(org.apache.http.HttpHost host, - org.apache.http.HttpRequest request, - org.apache.http.client.ResponseHandler<? extends T> handler, - org.apache.http.protocol.HttpContext context) 
      org.apache.http.HttpResponseexecute(org.apache.http.client.methods.HttpUriRequest request) 
      org.apache.http.HttpResponseexecute(org.apache.http.client.methods.HttpUriRequest request, - org.apache.http.protocol.HttpContext context) 
      <T> Texecute(org.apache.http.client.methods.HttpUriRequest request, - org.apache.http.client.ResponseHandler<? extends T> handler) 
      <T> Texecute(org.apache.http.client.methods.HttpUriRequest request, - org.apache.http.client.ResponseHandler<? extends T> handler, - org.apache.http.protocol.HttpContext context) 
      org.apache.http.conn.ClientConnectionManagergetConnectionManager() 
      org.apache.http.params.HttpParamsgetParams() 
      protected HttpURLConnectionopenConnection(URL url) -
      Returns a new HttpURLConnection customized for this application.
      -
      - -
    • -
    -
  • -
-
-
-
    -
  • - - - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        OkApacheClient

        -
        public OkApacheClient()
        -
      • -
      - - - -
        -
      • -

        OkApacheClient

        -
        public OkApacheClient(OkHttpClient client)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        openConnection

        -
        protected HttpURLConnection openConnection(URL url)
        -
        Returns a new HttpURLConnection customized for this application. Subclasses should override - this to customize the connection.
        -
      • -
      - - - -
        -
      • -

        getParams

        -
        public org.apache.http.params.HttpParams getParams()
        -
        -
        Specified by:
        -
        getParams in interface org.apache.http.client.HttpClient
        -
        -
      • -
      - - - -
        -
      • -

        getConnectionManager

        -
        public org.apache.http.conn.ClientConnectionManager getConnectionManager()
        -
        -
        Specified by:
        -
        getConnectionManager in interface org.apache.http.client.HttpClient
        -
        -
      • -
      - - - -
        -
      • -

        execute

        -
        public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request)
        -                                     throws IOException
        -
        -
        Specified by:
        -
        execute in interface org.apache.http.client.HttpClient
        -
        Throws:
        -
        IOException
        -
      • -
      - - - -
        -
      • -

        execute

        -
        public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request,
        -                                   org.apache.http.protocol.HttpContext context)
        -                                     throws IOException
        -
        -
        Specified by:
        -
        execute in interface org.apache.http.client.HttpClient
        -
        Throws:
        -
        IOException
        -
      • -
      - - - -
        -
      • -

        execute

        -
        public org.apache.http.HttpResponse execute(org.apache.http.HttpHost host,
        -                                   org.apache.http.HttpRequest request)
        -                                     throws IOException
        -
        -
        Specified by:
        -
        execute in interface org.apache.http.client.HttpClient
        -
        Throws:
        -
        IOException
        -
      • -
      - - - -
        -
      • -

        execute

        -
        public org.apache.http.HttpResponse execute(org.apache.http.HttpHost host,
        -                                   org.apache.http.HttpRequest request,
        -                                   org.apache.http.protocol.HttpContext context)
        -                                     throws IOException
        -
        -
        Specified by:
        -
        execute in interface org.apache.http.client.HttpClient
        -
        Throws:
        -
        IOException
        -
      • -
      - - - -
        -
      • -

        execute

        -
        public <T> T execute(org.apache.http.client.methods.HttpUriRequest request,
        -            org.apache.http.client.ResponseHandler<? extends T> handler)
        -          throws IOException
        -
        -
        Specified by:
        -
        execute in interface org.apache.http.client.HttpClient
        -
        Throws:
        -
        IOException
        -
      • -
      - - - -
        -
      • -

        execute

        -
        public <T> T execute(org.apache.http.client.methods.HttpUriRequest request,
        -            org.apache.http.client.ResponseHandler<? extends T> handler,
        -            org.apache.http.protocol.HttpContext context)
        -          throws IOException
        -
        -
        Specified by:
        -
        execute in interface org.apache.http.client.HttpClient
        -
        Throws:
        -
        IOException
        -
      • -
      - - - -
        -
      • -

        execute

        -
        public <T> T execute(org.apache.http.HttpHost host,
        -            org.apache.http.HttpRequest request,
        -            org.apache.http.client.ResponseHandler<? extends T> handler)
        -          throws IOException
        -
        -
        Specified by:
        -
        execute in interface org.apache.http.client.HttpClient
        -
        Throws:
        -
        IOException
        -
      • -
      - - - -
        -
      • -

        execute

        -
        public <T> T execute(org.apache.http.HttpHost host,
        -            org.apache.http.HttpRequest request,
        -            org.apache.http.client.ResponseHandler<? extends T> handler,
        -            org.apache.http.protocol.HttpContext context)
        -          throws IOException
        -
        -
        Specified by:
        -
        execute in interface org.apache.http.client.HttpClient
        -
        Throws:
        -
        IOException
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

Copyright © 2014. All Rights Reserved.

- - diff --git a/1.x/javadoc/com/squareup/okhttp/apache/class-use/OkApacheClient.html b/1.x/javadoc/com/squareup/okhttp/apache/class-use/OkApacheClient.html deleted file mode 100644 index 69bfc2446..000000000 --- a/1.x/javadoc/com/squareup/okhttp/apache/class-use/OkApacheClient.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - -Uses of Class com.squareup.okhttp.apache.OkApacheClient (OkHttp Apache HttpClient 1.6.0 API) - - - - - - - -
- - - - - -
- - -
-

Uses of Class
com.squareup.okhttp.apache.OkApacheClient

-
-
No usage of com.squareup.okhttp.apache.OkApacheClient
- -
- - - - - -
- - -

Copyright © 2014. All Rights Reserved.

- - diff --git a/1.x/javadoc/com/squareup/okhttp/apache/package-frame.html b/1.x/javadoc/com/squareup/okhttp/apache/package-frame.html deleted file mode 100644 index a10ed4cb8..000000000 --- a/1.x/javadoc/com/squareup/okhttp/apache/package-frame.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - -com.squareup.okhttp.apache (OkHttp Apache HttpClient 1.6.0 API) - - - - -

com.squareup.okhttp.apache

-
-

Classes

- -
- - diff --git a/1.x/javadoc/com/squareup/okhttp/apache/package-tree.html b/1.x/javadoc/com/squareup/okhttp/apache/package-tree.html deleted file mode 100644 index 83a4bff61..000000000 --- a/1.x/javadoc/com/squareup/okhttp/apache/package-tree.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -com.squareup.okhttp.apache Class Hierarchy (OkHttp Apache HttpClient 1.6.0 API) - - - - - - - -
- - - - - -
- - -
-

Hierarchy For Package com.squareup.okhttp.apache

-
-
-

Class Hierarchy

- -
- -
- - - - - -
- - -

Copyright © 2014. All Rights Reserved.

- - diff --git a/1.x/javadoc/com/squareup/okhttp/class-use/Address.html b/1.x/javadoc/com/squareup/okhttp/class-use/Address.html new file mode 100644 index 000000000..0faf23064 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/class-use/Address.html @@ -0,0 +1,171 @@ + + + + + + +Uses of Class com.squareup.okhttp.Address (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.squareup.okhttp.Address

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/class-use/Cache.html b/1.x/javadoc/com/squareup/okhttp/class-use/Cache.html new file mode 100644 index 000000000..b14522141 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/class-use/Cache.html @@ -0,0 +1,170 @@ + + + + + + +Uses of Class com.squareup.okhttp.Cache (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.squareup.okhttp.Cache

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/class-use/CacheControl.html b/1.x/javadoc/com/squareup/okhttp/class-use/CacheControl.html new file mode 100644 index 000000000..ff44b478e --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/class-use/CacheControl.html @@ -0,0 +1,142 @@ + + + + + + +Uses of Class com.squareup.okhttp.CacheControl (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.squareup.okhttp.CacheControl

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/class-use/Connection.html b/1.x/javadoc/com/squareup/okhttp/class-use/Connection.html new file mode 100644 index 000000000..8828e98d3 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/class-use/Connection.html @@ -0,0 +1,163 @@ + + + + + + +Uses of Class com.squareup.okhttp.Connection (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.squareup.okhttp.Connection

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/class-use/ConnectionPool.html b/1.x/javadoc/com/squareup/okhttp/class-use/ConnectionPool.html new file mode 100644 index 000000000..5089cbc40 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/class-use/ConnectionPool.html @@ -0,0 +1,171 @@ + + + + + + +Uses of Class com.squareup.okhttp.ConnectionPool (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.squareup.okhttp.ConnectionPool

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/class-use/Handshake.html b/1.x/javadoc/com/squareup/okhttp/class-use/Handshake.html new file mode 100644 index 000000000..4fe500aa9 --- /dev/null +++ b/1.x/javadoc/com/squareup/okhttp/class-use/Handshake.html @@ -0,0 +1,150 @@ + + + + + + +Uses of Class com.squareup.okhttp.Handshake (OkHttp 1.6.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.squareup.okhttp.Handshake

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2014. All Rights Reserved.

+ + diff --git a/1.x/javadoc/com/squareup/okhttp/apache/package-use.html b/1.x/javadoc/com/squareup/okhttp/class-use/HttpResponseCache.html similarity index 67% rename from 1.x/javadoc/com/squareup/okhttp/apache/package-use.html rename to 1.x/javadoc/com/squareup/okhttp/class-use/HttpResponseCache.html index 850deeb8e..4ee7f30ac 100644 --- a/1.x/javadoc/com/squareup/okhttp/apache/package-use.html +++ b/1.x/javadoc/com/squareup/okhttp/class-use/HttpResponseCache.html @@ -2,16 +2,16 @@ - + -Uses of Package com.squareup.okhttp.apache (OkHttp Apache HttpClient 1.6.0 API) +Uses of Class com.squareup.okhttp.HttpResponseCache (OkHttp 1.6.0 API) @@ -25,10 +25,10 @@
@@ -93,10 +100,10 @@