9 releases

0.4.1 Jan 24, 2022
0.4.0 Aug 11, 2021
0.3.6 Apr 8, 2020
0.1.0 Apr 15, 2019

#92 in #proxy

Download history 143/week @ 2023-07-17 87/week @ 2023-07-24 198/week @ 2023-07-31 121/week @ 2023-08-07 307/week @ 2023-08-14 215/week @ 2023-08-21 391/week @ 2023-08-28 347/week @ 2023-09-04 207/week @ 2023-09-11 140/week @ 2023-09-18 255/week @ 2023-09-25 196/week @ 2023-10-02 228/week @ 2023-10-09 482/week @ 2023-10-16 394/week @ 2023-10-23 236/week @ 2023-10-30

1,340 downloads per month
Used in 2 crates (via siquery)

MIT/Apache

31KB
663 lines

proxy-cfg

Crates.io Documentation

A Rust library to get proxy configuration from the OS.

Usage

if let Ok(Some(proxy_config)) = proxy_cfg::get_proxy_config() {
    if let Some(proxy_address) = proxy_config.get_proxy_for_url(Url::parse("http://www.google.com").unwrap()) {
        // use proxy_address to connect
    }
}

License

This project is provided under the terms of the Apache License 2.0 or the MIT License, at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1.3–2MB
~61K SLoC