Expand description
HTTP server.
Lets a .tlisp script spin up an HTTP listener with a static
routing table. Suitable for hello-world demos, smoke-test
services, and the most basic “deploy a tatara-lisp program live”
shape.
;; Static routes — fixed responses per path.
(http-serve-static
8080
'(("/healthz" 200 "{\"status\":\"ok\"}")
("/" 200 "{\"message\":\"Hello, world!\"}")
("/hello" 200 "{\"message\":\"Hello, world!\"}")))Blocks the calling thread until SIGTERM/SIGINT.
Production HTTP services (with dynamic handlers, path params, middleware) ship through wasm-operator per theory/WASM-STACK.md §IV. This stdlib primitive is for the smallest demo case where a script “serves something” without coordinating a cluster.