Skip to main content

ProxyFn

Type Alias ProxyFn 

Source
pub type ProxyFn = Arc<dyn Fn(&Request) -> Result<Option<Url>, HttpError> + Send + Sync>;
Expand description

Resolves the proxy to use for a request, or None for a direct connection. Port of Go’s Transport.Proxy func(*Request) (*url.URL, error).

Aliased Type§

pub struct ProxyFn { /* private fields */ }