From c587f1ca2aa6f808812974a001da8cea6619386c Mon Sep 17 00:00:00 2001 From: tacheraSasi Date: Wed, 11 Dec 2024 00:44:55 +0300 Subject: [PATCH] more vint code --- vintLang/http.vint | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/vintLang/http.vint b/vintLang/http.vint index 567a228..3a153ff 100644 --- a/vintLang/http.vint +++ b/vintLang/http.vint @@ -1,8 +1,10 @@ +import http + let port = "3000"; let dir = "/var/www/html"; // Scenario 1: Using the default message and no directory listing -http.fileServer(port, dir); +// http.fileServer(port, dir); // Scenario 2: Starting a file server with a custom message http.fileServer( @@ -25,7 +27,7 @@ http.fileServer( ); // Scenario 5: Invalid usage (e.g., wrong arguments) - this should return an error -http.fileServer(3000, dir); // Port must be a string -http.fileServer(port, 123); // Directory must be a string -http.fileServer(port, dir, 404); // Message must be a string -http.fileServer(port, dir, "Message", "true"); // enableListing must be a boolean +// http.fileServer(3000, dir); // Port must be a string +// http.fileServer(port, 123); // Directory must be a string +// http.fileServer(port, dir, 404); // Message must be a string +// http.fileServer(port, dir, "Message", "true"); // enableListing must be a boolean