Llm4sHttpClient

org.llm4s.http.Llm4sHttpClient
See theLlm4sHttpClient companion trait

Attributes

Companion
trait
Source
Llm4sHttpClient.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Creates the JDK-backed HTTP client.

Creates the JDK-backed HTTP client.

With no argument it uses the JVM's default proxy selector and trust store, not llm4s.http: pass HttpClientOptions(network) with the settings Llm4sConfig.httpNetwork() loads to honour them. The client is then routed and trusting as network says: through its proxy (except to the hosts it bypasses, answering only the proxy's own authentication challenge) and with its extra trust and client certificate.

TLS material that cannot be read (Llm4sConfig.httpNetwork() checks it when it loads) makes every request a Left(ConfigurationError) naming the store, never a thrown exception.

The JDK sends Basic proxy credentials on a plain-http request, but on an https tunnel only when the JVM is started with -Djdk.http.auth.tunneling.disabledSchemes="" (its default disables Basic there).

Value parameters

options

the proxy and TLS settings and the connect timeout

Attributes

Source
Llm4sHttpClient.scala