1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02:00

refactor server impl and add support for alpn http2 negotiation

This commit is contained in:
Nikolay Kim
2017-11-04 12:33:14 -07:00
parent 32cefb8455
commit d7d3d663e9
14 changed files with 240 additions and 136 deletions

View File

@ -11,4 +11,4 @@ path = "src/main.rs"
env_logger = "0.4"
actix = "0.3.1"
actix-web = { path = "../../", features=["tls"] }
actix-web = { path = "../../", features=["alpn"] }

View File

@ -26,7 +26,7 @@ fn main() {
let mut file = File::open("identity.pfx").unwrap();
let mut pkcs12 = vec![];
file.read_to_end(&mut pkcs12).unwrap();
let pkcs12 = Pkcs12::from_der(&pkcs12, "12345").unwrap();
let pkcs12 = Pkcs12::from_der(&pkcs12).unwrap().parse("12345").unwrap();
HttpServer::new(
Application::default("/")