Module id.xfunction

Class HttpClientBuilder


public class HttpClientBuilder extends Object
Provides additional features for HttpClient.Builder.

Requires Java 11 or higher.

  • Constructor Details

    • HttpClientBuilder

      public HttpClientBuilder()
    • HttpClientBuilder

      public HttpClientBuilder(HttpClient.Builder builder)
  • Method Details

    • insecure

      public HttpClientBuilder insecure()
      Makes HttpClient to ignore SSL certificates validation
    • tlsv1

      public HttpClientBuilder tlsv1()
      Adds to HttpClient TLS1.0 support
    • get

      public HttpClient.Builder get()
      Return the original HttpClient.Builder from which you can create HttpClient