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, wait
createClient, createDefault
public HttpClient.Builder builder()
HttpClient.Factory
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.builder
in interface HttpClient.Factory
public void cleanupIdleClients()
HttpClient.Factory
cleanupIdleClients
in interface HttpClient.Factory