12 releases

0.3.7 Jul 6, 2026
0.3.6 Mar 7, 2025
0.3.5 Oct 4, 2024
0.3.4 Aug 16, 2023
0.3.1 Jul 28, 2021

#111 in Configuration

115,475 downloads per month
Used in 3 crates (via launchdarkly-sdk-transpor…)

MIT license

14KB
336 lines

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'");
}

Dependencies

~0.2–6.5MB
~158K SLoC