Crates.io | proxy_cfg |
lib.rs | proxy_cfg |
version | 0.4.1 |
source | src |
created_at | 2019-04-15 13:36:34.862401 |
updated_at | 2022-01-24 21:28:33.670378 |
description | A library to get proxy configuration from the OS. |
homepage | |
repository | https://github.com/devolutions/proxy-cfg |
max_upload_size | |
id | 128106 |
size | 53,807 |
A Rust library to get proxy configuration from the OS.
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
}
}
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.