From 519a9e64f87a22864c313300181fd9a148693a6f Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 8 Nov 2017 20:29:48 -0800 Subject: [PATCH] cleanup tls example --- examples/tls/Cargo.toml | 4 ++-- examples/tls/README.md | 5 +++++ examples/tls/src/main.rs | 2 -- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 examples/tls/README.md diff --git a/examples/tls/Cargo.toml b/examples/tls/Cargo.toml index 1c73ab396..df91f54cc 100644 --- a/examples/tls/Cargo.toml +++ b/examples/tls/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "ssl-example" +name = "tls-example" version = "0.1.0" authors = ["Nikolay Kim "] @@ -10,5 +10,5 @@ path = "src/main.rs" [dependencies] env_logger = "0.4" -actix = "0.3.1" +actix = "^0.3.1" actix-web = { path = "../../", features=["alpn"] } diff --git a/examples/tls/README.md b/examples/tls/README.md new file mode 100644 index 000000000..bd1f2400d --- /dev/null +++ b/examples/tls/README.md @@ -0,0 +1,5 @@ +# tls example + +To start server use command: `cargo run` + +Test command: `curl -v https://127.0.0.1:8080/index.html --compress -k` diff --git a/examples/tls/src/main.rs b/examples/tls/src/main.rs index 6d1b856d7..062f6334d 100644 --- a/examples/tls/src/main.rs +++ b/examples/tls/src/main.rs @@ -3,10 +3,8 @@ extern crate actix; extern crate actix_web; extern crate env_logger; -//use tokio_tls; use std::fs::File; use std::io::Read; -// use native_tls::{TlsAcceptor, TlsStream}; use actix_web::*;