1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-02 09:36:39 +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

@@ -27,6 +27,11 @@ extern crate native_tls;
#[cfg(feature="tls")]
extern crate tokio_tls;
#[cfg(feature="openssl")]
extern crate openssl;
#[cfg(feature="openssl")]
extern crate tokio_openssl;
mod application;
mod body;
mod context;
@@ -42,6 +47,7 @@ mod route;
mod task;
mod staticfiles;
mod server;
mod channel;
mod wsframe;
mod wsproto;
mod h1;
@@ -65,6 +71,7 @@ pub use recognizer::{Params, RouteRecognizer};
pub use logger::Logger;
pub use server::HttpServer;
pub use context::HttpContext;
pub use channel::HttpChannel;
pub use staticfiles::StaticFiles;
// re-exports
@@ -75,3 +82,6 @@ pub use http_range::{HttpRange, HttpRangeParseError};
#[cfg(feature="tls")]
pub use native_tls::Pkcs12;
#[cfg(feature="openssl")]
pub use openssl::pkcs12::Pkcs12;