Interface HttpClient.HttpClientFactory

  • Enclosing class:
    HttpClient
    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 static interface HttpClient.HttpClientFactory
    HTTP client factory.
    Since:
    15229
    • Method Detail

      • create

        HttpClient create​(java.net.URL url,
                          java.lang.String requestMethod)
        Creates a new instance for the given URL and a GET request
        Parameters:
        url - the URL
        requestMethod - the HTTP request method to perform when calling
        Returns:
        a new instance