public static class OkHttpClient.Factory extends java.lang.Object implements HttpClient.Factory
| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
HttpClient.Builder |
builder()
By default
HttpClient.Factory.createClient(URL) will pick sensible defaults for the HttpClient
to use, but if more control is needed, the HttpClient.Builder gives access to this. |
void |
cleanupIdleClients()
Closes idle clients.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateClient, createDefaultpublic HttpClient.Builder builder()
HttpClient.FactoryHttpClient.Factory.createClient(URL) will pick sensible defaults for the HttpClient
to use, but if more control is needed, the HttpClient.Builder gives access to this.builder in interface HttpClient.Factorypublic void cleanupIdleClients()
HttpClient.FactorycleanupIdleClients in interface HttpClient.Factory