1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-17 13:46:36 +00: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]
name = "ssl-example"
name = "tls-example"
version = "0.1.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
@ -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"] }

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 env_logger;
//use tokio_tls;
use std::fs::File;
use std::io::Read;
// use native_tls::{TlsAcceptor, TlsStream};
use actix_web::*;