Class HttpClientBuilderLoader

java.lang.Object
dev.langchain4j.http.client.HttpClientBuilderLoader

public class HttpClientBuilderLoader extends Object
  • Constructor Details

    • HttpClientBuilderLoader

      public HttpClientBuilderLoader()
  • Method Details

    • loadHttpClientBuilder

      public static HttpClientBuilder loadHttpClientBuilder()
      Creates an HttpClientBuilder with one of the factories on the classpath. The factory named by the langchain4j.http.clientBuilderFactory system property is used when that property is set. Otherwise, the factory with the highest priority is used.
      Returns:
      a new builder
      Throws:
      IllegalStateException - if there is no factory on the classpath, if the system property names a factory that is not on the classpath, or if several factories share the highest priority