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::*;