mirror of
https://github.com/actix/actix-extras.git
synced 2024-12-03 19:42:13 +01:00
cleanup tls example
This commit is contained in:
parent
4d575c6269
commit
519a9e64f8
@ -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
5
examples/tls/README.md
Normal 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`
|
@ -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::*;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user