summaryrefslogtreecommitdiff
path: root/examples/web-hello.scm
diff options
context:
space:
mode:
Diffstat (limited to 'examples/web-hello.scm')
-rw-r--r--examples/web-hello.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/web-hello.scm b/examples/web-hello.scm
new file mode 100644
index 0000000..00815a2
--- /dev/null
+++ b/examples/web-hello.scm
@@ -0,0 +1,7 @@
+(use-modules (web server))
+
+(define (handler request body)
+ (values '((content-type . (text/plain)))
+ "Hello, World!"))
+
+(run-server handler 'fibers)