rust-proxy
This is a meter proxy implemented in Rust, which interposes between a client and a server and measures the latency and the throughput. An asychronous version will come soon.
Requirements
Of course, you will need Rust installed. If you haven't already, get it here: rust-lang.org. Also you need Cargo to easily compile. The rustc compiler version required is the 1.15.0-nightly.
Usage
To use the proxy, add this to your Cargo.toml
:
[]
= "0.1.1"
Example Meter Proxy Usage
extern crate meterproxy;
use MeterProxy;
use thread;
use Duration;
meter_proxy.stop_and_reset;
let _ = child_proxy.join;
}
License
MIT © Giovanni Mazzeo