Package com.helger.httpclient
Interface IHttpClientProvider
- All Known Implementing Classes:
HttpClientFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provider interface for
CloseableHttpClient objects.- Since:
- 8.7.2
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.client5.http.impl.classic.CloseableHttpClientCreate a new closeable HttpClient object.
-
Method Details
-
createHttpClient
@Nonnull org.apache.hc.client5.http.impl.classic.CloseableHttpClient createHttpClient()Create a new closeable HttpClient object.- Returns:
- A new object. May not be
null.
-