HttpConfig

org.llm4s.toolapi.builtin.http.HttpConfig
See theHttpConfig companion class
object HttpConfig

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
HttpConfig.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def readOnly(allowedDomains: Option[Seq[String]], blockedDomains: Seq[String]): HttpConfig

Create a read-only configuration that only allows GET and HEAD requests. This is the default and safest configuration.

Create a read-only configuration that only allows GET and HEAD requests. This is the default and safest configuration.

Attributes

def restricted(allowedDomains: Seq[String]): HttpConfig

Create a restrictive configuration with explicit domain allowlist.

Create a restrictive configuration with explicit domain allowlist.

Attributes

Create an unsafe configuration that disables SSRF protection.

Create an unsafe configuration that disables SSRF protection.

WARNING: This allows requests to internal networks and cloud metadata endpoints. Only use this in controlled/sandboxed environments.

Attributes

def withWriteMethods(allowedDomains: Option[Seq[String]], blockedDomains: Seq[String]): HttpConfig

Create a configuration that allows all common HTTP methods.

Create a configuration that allows all common HTTP methods.

WARNING: This enables potentially destructive methods (POST, PUT, DELETE). Use with caution and appropriate guardrails.

Attributes

Concrete fields

val DefaultBlockedDomains: Seq[String]

Default blocked domains (hostnames).

Default blocked domains (hostnames).

Attributes