Standard

org.llm4s.rag.loader.UrlPolicy.Standard
See theStandard companion object
final case class Standard extends UrlPolicy

The built-in policy.

Value parameters

allowPrivateNetworks

whether a host may resolve to a loopback, private or other non-public address. The cloud metadata endpoint (169.254.169.254, fd00:ec2::254, metadata.google.internal, metadata.internal, and 169.254.169.254 inside a NAT64, IPv4-mapped or 6to4 IPv6 address) stays refused either way.

allowedHosts

when non-empty, only these hosts and their subdomains may be fetched (case-insensitive)

allowedSchemes

the URL schemes that may be fetched; the loaders speak only http and https

blockedHosts

hosts that, with their subdomains, are refused in addition to the defaults

resolver

how a host name is resolved: InetAddress.getAllByName by default

Attributes

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

Members list

Value members

Concrete methods

The addresses url may be fetched from, or why it may not be fetched.

The addresses url may be fetched from, or why it may not be fetched.

Attributes

Returns

a non-empty list of addresses, tried in order; the loader never connects to any other

Source
UrlPolicy.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
UrlPolicy.scala

Whether a host may resolve to a non-public address, such as an intranet's.

Whether a host may resolve to a non-public address, such as an intranet's.

Attributes

Source
UrlPolicy.scala

Only hosts and their subdomains may be fetched; an empty set lifts the restriction.

Only hosts and their subdomains may be fetched; an empty set lifts the restriction.

Attributes

Source
UrlPolicy.scala

The URL schemes that may be fetched (http, https).

The URL schemes that may be fetched (http, https).

Attributes

Source
UrlPolicy.scala

Refuse hosts and their subdomains too.

Refuse hosts and their subdomains too.

Attributes

Source
UrlPolicy.scala

Resolve host names with resolve instead of the system resolver.

Resolve host names with resolve instead of the system resolver.

Attributes

Source
UrlPolicy.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product