Skip to content

ExternalProxyDict

Dictionary Type

ExternalProxyDict

Bases: TypedDict

Dictionary form of ExternalProxy.

Attributes

credentials instance-attribute
credentials: ProxyCredentials | ProxyCredentialsDict | None

Optional authentication credentials for the proxy server. If omitted, the proxy is accessed without authentication (useful for IP-allowlisted proxies).

domain_patterns instance-attribute
domain_patterns: Sequence[str] | None

Optional array of domain patterns that should route through this specific proxy. Supports .example.com for subdomain matching (matches any subdomain of example.com) or example.com for exact domain matching. If omitted, this proxy acts as a catch-all for domains not matched by other proxies. Maximum 100 patterns per proxy, each up to 253 characters.

port instance-attribute
port: Required[int]

The port number of the proxy server. Valid range: 1-65535.

server instance-attribute
server: Required[str]

The hostname of the proxy server. Must be a valid DNS hostname (maximum 253 characters).