diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index a39e83e..c0e500c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,6 +12,7 @@ mod environment; mod html; +mod http09; mod response; mod url; @@ -29,6 +30,10 @@ async fn main() -> std::io::Result<()> { ) .init(); + if environment::ENVIRONMENT.http09 { + tokio::spawn(http09::serve()); + } + actix_web::HttpServer::new(move || { actix_web::App::new() .default_service(web::get().to(default)) |