HttpConfig

org.llm4s.toolapi.builtin.http.HttpConfig
See theHttpConfig companion object
case class HttpConfig(allowedDomains: Option[Seq[String]], blockedDomains: Seq[String], maxResponseSize: Long, timeoutMs: Int, followRedirects: Boolean, maxRedirects: Int, allowedMethods: Seq[String], userAgent: String)

Configuration for HTTP tool.

Value parameters

allowedDomains

Optional list of allowed domains. If None, all domains are allowed.

allowedMethods

HTTP methods that are allowed.

blockedDomains

List of domains that are always blocked.

followRedirects

Whether to follow HTTP redirects.

maxRedirects

Maximum number of redirects to follow.

maxResponseSize

Maximum response size in bytes.

timeoutMs

Request timeout in milliseconds.

userAgent

User-Agent header to use.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def isDomainAllowed(domain: String): Boolean

Check if a domain is allowed.

Check if a domain is allowed.

Attributes

def isMethodAllowed(method: String): Boolean

Check if a method is allowed.

Check if a method is allowed.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product