Crates.io | no-proxy |
lib.rs | no-proxy |
version | 0.3.5 |
source | src |
created_at | 2021-07-22 07:39:35.320542 |
updated_at | 2024-10-04 06:25:35.313868 |
description | Parses and evaluate no_proxy configuration |
homepage | |
repository | https://github.com/jdrouet/no-proxy |
max_upload_size | |
id | 425792 |
size | 14,829 |
This crate is a simple NO_PROXY
parser and evaluator. It follows this article from Gitlab
on how to properly implement it.
use no_proxy::NoProxy;
let no_proxy = NoProxy::from(".foo.bar,bar.baz,10.42.1.1/24,::1,10.124.7.8,2001::/17");
if no_proxy.matches("bar.baz") {
println!("matches 'bar.baz'");
}