public static interface HttpClient.Factory
Modifier and Type | Method and Description |
---|---|
HttpClient.Builder |
builder()
By default
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.
|
default HttpClient |
createClient(java.net.URL url)
Creates a HTTP client that will send requests to the given URL.
|
static HttpClient.Factory |
createDefault()
Use the
webdriver.http.factory system property to determine which implementation of
HttpClient should be used. |
static HttpClient.Factory createDefault()
webdriver.http.factory
system property to determine which implementation of
HttpClient
should be used.HttpClient.Builder builder()
createClient(URL)
will pick sensible defaults for the HttpClient
to use, but if more control is needed, the HttpClient.Builder
gives access to this.default HttpClient createClient(java.net.URL url)
url
- URL The base URL for requests.void cleanupIdleClients()