Interface HttpClientSupplier
- All Superinterfaces:
Supplier<org.apache.hc.client5.http.impl.classic.CloseableHttpClient>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface HttpClientSupplier
extends Supplier<org.apache.hc.client5.http.impl.classic.CloseableHttpClient>
Supplier for
CloseableHttpClients.
May be used to provide customized HTTP clients to data source clients.
Closing of the supplied CloseableHttpClient instances is a responsibility of the caller.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic HttpClientSupplierReturns a default HTTP client supplier with system proxy settings.
-
Method Details
-
getDefault
Returns a default HTTP client supplier with system proxy settings.- Returns:
- a default HTTP client supplier
-