aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
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))