Add a README for the examples

This commit is contained in:
Alex Crichton
2017-09-11 13:31:08 -07:00
parent 2e5cd1640e
commit ecedea3404
3 changed files with 63 additions and 1 deletions
+15
View File
@@ -1,5 +1,20 @@
//! A proxy that forwards data to another server and forwards that server's
//! responses back to clients.
//!
//! You can showcase this by running this in one terminal:
//!
//! cargo run --example proxy
//!
//! This in another terminal
//!
//! cargo run --example echo
//!
//! And finally this in another terminal
//!
//! cargo run --example connect 127.0.0.1:8081
//!
//! This final terminal will connect to our proxy, which will in turn connect to
//! the echo server, and you'll be able to see data flowing between them.
extern crate futures;
extern crate tokio_core;