From 8a301a6d03a39e8d8dd8fdc2326693a4c987c381 Mon Sep 17 00:00:00 2001 From: _ <> Date: Thu, 29 Oct 2020 13:31:13 +0000 Subject: [PATCH] :construction: Can index directories now, but a lot of stuff is missing --- src/bin/server.rs | 33 ++++++++++++++++++++++++++++++--- todo.md | 2 +- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/bin/server.rs b/src/bin/server.rs index 0c946dc..9c724f3 100644 --- a/src/bin/server.rs +++ b/src/bin/server.rs @@ -83,7 +83,7 @@ impl <'a> ResponseHandle <'a> { async fn serve_dir ( response_handle: ResponseHandle <'_>, - dir: ReadDir + mut dir: ReadDir ) { let (tx, rx) = channel (2); @@ -92,8 +92,35 @@ async fn serve_dir ( tx.send (Ok::<_, Infallible> (String::from ("