Skip to main content

ProxyProvider

Trait ProxyProvider 

Source
pub trait ProxyProvider: Send + Sync {
    // Required methods
    fn proxy_config(&self) -> &ProxyConfig;
    fn allowed_proxy_ips(&self) -> Option<&[String]>;
}
Expand description

Configuration for proxy behavior.

Implement this trait to customize upstream proxy settings.

Required Methods§

Source

fn proxy_config(&self) -> &ProxyConfig

Returns the proxy configuration.

Source

fn allowed_proxy_ips(&self) -> Option<&[String]>

Returns the list of allowed proxy IPs, if configured. When Some, strict mode is enabled. When None, permissive mode is used.

Implementors§