HttpConfig

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

Attributes

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

Members list

Type members

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

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

Source
HttpConfig.scala
def restricted(allowedDomains: Seq[String]): HttpConfig

Create a restrictive configuration with explicit domain allowlist.

Create a restrictive configuration with explicit domain allowlist.

Attributes

Source
HttpConfig.scala

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

Source
HttpConfig.scala
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

Source
HttpConfig.scala

Concrete fields

Default blocked domains (hostnames).

Default blocked domains (hostnames).

Attributes

Source
HttpConfig.scala

The caller-set headers a redirect carries to another origin by default: content negotiation and the user agent, none of which can carry a credential. Content-Type goes only with a re-sent body.

The caller-set headers a redirect carries to another origin by default: content negotiation and the user agent, none of which can carry a credential. Content-Type goes only with a re-sent body.

Attributes

Source
HttpConfig.scala