1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-21 03:41:07 +03:00

Doc: OkHttpClient need not /always/ be a singleton

This commit is contained in:
Roberto Tyley
2014-03-11 17:51:41 +00:00
parent b8f3a029d3
commit 8a0b263b7a

View File

@@ -41,9 +41,9 @@ import javax.net.ssl.SSLSocketFactory;
import okio.ByteString;
/**
* Configures and creates HTTP connections. Designed to be treated as a singleton - by
* using a single instance you are afforded a shared response cache, thread pool, connection
* re-use, etc.
* 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.
*/
public final class OkHttpClient implements URLStreamHandlerFactory, Cloneable {