public interface HttpClientService
HttpClient instances. It creates a HttpClient instance
for every HttpClientConfiguration.
The HttpClient was designed to be stateless and reusable for the same HttpClientConfiguration.
Ideally, the HttpClient should not be related to any Cookie Store strategy to be able to send stateless requests.
If you need to reuse HttpClient instances for a set of requests consider implementing a cache strategy based
on HttpClientConfiguration.
| Modifier and Type | Method and Description |
|---|---|
HttpClient |
getClient(HttpClientConfiguration configuration)
Creates a
HttpClient instance based on the HttpClientConfiguration. |
HttpClient getClient(HttpClientConfiguration configuration)
HttpClient instance based on the HttpClientConfiguration.configuration - the HttpClientConfiguration specifying the desired client.HttpClient based on the configuration.