HttpClientOptions

org.llm4s.http.HttpClientOptions
See theHttpClientOptions companion object
@Stable
final case class HttpClientOptions

How Llm4sHttpClient.create builds the JDK-backed client.

Build one with HttpClientOptions.apply and change it with the with* setters; the constructor and copy are private, so a new field never breaks callers.

Value parameters

connectTimeout

the limit on establishing each connection, separate from every request's own timeouts; None leaves connecting bounded by the request's responseTimeout alone

network

the proxy and TLS settings; HttpNetworkSettings.default keeps the JVM's default proxy selector and trust store

Attributes

Companion
object
Source
Llm4sHttpClient.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Sets the limit on establishing each connection.

Sets the limit on establishing each connection.

Attributes

Source
Llm4sHttpClient.scala

Sets or clears the limit on establishing each connection.

Sets or clears the limit on establishing each connection.

Attributes

Source
Llm4sHttpClient.scala

Sets the proxy and TLS settings.

Sets the proxy and TLS settings.

Attributes

Source
Llm4sHttpClient.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product