7 releases

0.3.2 Jun 16, 2022
0.3.1 Jul 28, 2021
0.2.2 Jul 22, 2021
0.1.0 Jul 22, 2021
Download history 3903/week @ 2022-03-09 4455/week @ 2022-03-16 3693/week @ 2022-03-23 3960/week @ 2022-03-30 3693/week @ 2022-04-06 3484/week @ 2022-04-13 5862/week @ 2022-04-20 5825/week @ 2022-04-27 6128/week @ 2022-05-04 3546/week @ 2022-05-11 3924/week @ 2022-05-18 3263/week @ 2022-05-25 3807/week @ 2022-06-01 5773/week @ 2022-06-08 4702/week @ 2022-06-15 3540/week @ 2022-06-22

18,599 downloads per month

MIT license

12KB
319 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

~1.5–3.5MB
~93K SLoC