no-proxy

Crates.iono-proxy
lib.rsno-proxy
version0.3.4
sourcesrc
created_at2021-07-22 07:39:35.320542
updated_at2023-08-16 11:31:36.412688
descriptionParses and evaluate no_proxy configuration
homepage
repositoryhttps://github.com/jdrouet/no-proxy
max_upload_size
id425792
size12,677
Jérémie Drouet (jdrouet)

documentation

README

no proxy

This crate is a simple NO_PROXY parser and evaluator. It follows this article from Gitlab on how to properly implement it.

Usage

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'");
}
Commit count: 20

cargo fmt