1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-12-04 20:11:55 +01:00

cleanup tls example

This commit is contained in:
Nikolay Kim 2017-11-08 20:29:48 -08:00
parent 4d575c6269
commit 519a9e64f8
3 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
[package] [package]
name = "ssl-example" name = "tls-example"
version = "0.1.0" version = "0.1.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"] authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
@ -10,5 +10,5 @@ path = "src/main.rs"
[dependencies] [dependencies]
env_logger = "0.4" env_logger = "0.4"
actix = "0.3.1" actix = "^0.3.1"
actix-web = { path = "../../", features=["alpn"] } actix-web = { path = "../../", features=["alpn"] }

5
examples/tls/README.md Normal file
View File

@ -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`

View File

@ -3,10 +3,8 @@ extern crate actix;
extern crate actix_web; extern crate actix_web;
extern crate env_logger; extern crate env_logger;
//use tokio_tls;
use std::fs::File; use std::fs::File;
use std::io::Read; use std::io::Read;
// use native_tls::{TlsAcceptor, TlsStream};
use actix_web::*; use actix_web::*;