HttpProxy

org.llm4s.http.HttpProxy
See theHttpProxy companion class
object HttpProxy

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
HttpProxy.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 apply(host: String, port: Int): HttpProxy

A proxy at host:port, without credentials, bypassed for DefaultNonProxyHosts.

A proxy at host:port, without credentials, bypassed for DefaultNonProxyHosts.

Value parameters

host

the proxy's host name or address

port

the proxy's port

Attributes

def fromUrl(url: String): Result[HttpProxy]

Parses a proxy URL such as http://proxy.corp:3128, the form HTTPS_PROXY holds.

Parses a proxy URL such as http://proxy.corp:3128, the form HTTPS_PROXY holds.

The scheme must be http (a bare host:port is read as one); the port is required. A user:password@ in the URL becomes the credentials. The error never repeats the URL, which may carry a password.

Value parameters

url

the proxy URL

Attributes

Concrete fields

val DefaultNonProxyHosts: Seq[String]

The hosts reached directly when nonProxyHosts is not set: the loopback addresses, as the JVM's own default.

The hosts reached directly when nonProxyHosts is not set: the loopback addresses, as the JVM's own default.

Attributes