Skip to main content

windows_manual

Function windows_manual 

Source
pub fn windows_manual(server: &str, override_list: &str) -> ProxyMode
Expand description

Assemble a ProxyMode::Manual from the two Windows registry strings.

proxy_server + proxy_override; the returned manual mode records dropped server tokens. Empty server, no rejects → ProxyMode::Direct; reject-only stays Manual so rejects are not lost.

let mode = parse::windows_manual("http=h:8080;https=h:-1", "");
assert_eq!(mode.rejected().unwrap()[0].redacted_input(), "https=h:-1");
// The well formed `http=` entry survives alongside the dropped `https=` one.
assert!(mode.endpoint_for(proxy_watch::Scheme::Http).is_some());