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.

@FunctionalInterface public interface IHttpClientProvider
Provider interface for CloseableHttpClient objects.
Since:
8.7.2
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hc.client5.http.impl.classic.CloseableHttpClient
    Create 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.