Is there a Guile equivalent of Python's -m http.server command?

GNU’s docs only show how to prepare a simple hello world response and the closest thing is the code use in the Haunt static site generator simple web server.

Maybe I should just extract that snippet into a function and evaluate it? Or is there a simpler way?

Hoot has a simple one derived from Haunt, and Andy Wingo said I should submit something similar to Guile so we can have an equivalent to http.server in Guile itself.

Bash one-liner to run it:

guile -c '((@ (hoot web-server) serve))'
3 Likes

Thanks!

(I should check the forum more often)