Next: More complex URL remapping, Previous: Simple HTTP server, Up: Hello World [Contents]
Type these code in Guile REPL:
(use-modules (artanis artanis)) (get "/hello" (lambda () "hello world")) (run #:port 8080)
Now you can visit http://localhost:8080/hello with your browser, and see the result.
If you encounter "[EXCEPTION] /favicon.ico is abnormal request", please ignore it.
Let me explain these code.
You may type Ctrl+C to quit the server according to the hint from your screen.