use kanagawa::*; #[nuclei::main] async fn main() -> Result<()> { let mut app = kanagawa::new(); app.with(kanagawa::log::LogMiddleware::new()); app.at("/").get(|_| async { // File sends are chunked by default. Ok(Body::from_file(file!()).await?) }); app.listen("127.0.0.1:8080").await?; Ok(()) }