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§
Sourcefn proxy_config(&self) -> &ProxyConfig
fn proxy_config(&self) -> &ProxyConfig
Returns the proxy configuration.
Sourcefn allowed_proxy_ips(&self) -> Option<&[String]>
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.