Interface HttpClientService
public interface HttpClientService
Factory object for
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.
-
Method Summary
Modifier and TypeMethodDescriptiongetClient(HttpClientConfiguration configuration) Creates aHttpClientinstance based on theHttpClientConfiguration.
-
Method Details
-
getClient
Creates aHttpClientinstance based on theHttpClientConfiguration.- Parameters:
configuration- theHttpClientConfigurationspecifying the desired client.- Returns:
- a newly built
HttpClientbased on theconfiguration.
-