public static class OkHttpClient.Factory extends java.lang.Object implements HttpClient.Factory
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupIdleClients()
Closes idle clients.
|
HttpClient |
createClient(java.net.URL url)
Creates a HTTP client that will send requests to the given URL.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDefault
public HttpClient createClient(java.net.URL url)
HttpClient.Factory
createClient
in interface HttpClient.Factory
url
- URLpublic void cleanupIdleClients()
HttpClient.Factory
cleanupIdleClients
in interface HttpClient.Factory