aboutsummaryrefslogtreecommitdiff
path: root/examples/http-server/http-server.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-20 15:22:41 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-20 15:22:41 -0400
commitefb3aae55908cb88f5a9c900d6563603ab792d6a (patch)
treece4293828ab43de4e6440bed0accf871a2d82f94 /examples/http-server/http-server.tm
parent3d313c5956510a807c2ce7d1ffd9c3bfbb708444 (diff)
Add more advanced configuration options to modules.ini and support
automatically downloading and installing from it.
Diffstat (limited to 'examples/http-server/http-server.tm')
-rw-r--r--examples/http-server/http-server.tm8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/http-server/http-server.tm b/examples/http-server/http-server.tm
index 717aa733..89141c32 100644
--- a/examples/http-server/http-server.tm
+++ b/examples/http-server/http-server.tm
@@ -9,9 +9,9 @@ use <unistd.h>
use <arpa/inet.h>
use <err.h>
-use commands_v1.0
-use pthreads_v1.0
-use patterns_v1.0
+use commands
+use pthreads
+use patterns
use ./connection-queue.tm
@@ -138,7 +138,7 @@ func load_routes(directory:Path -> {Text=RouteEntry})
func main(directory:Path, port=Int32(8080))
say("Serving on port $port")
routes := load_routes(directory)
- say(" Hosting: $routes")
+ say("Hosting: $routes")
serve(port, func(request:HTTPRequest)
if handler := routes[request.path]