aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/working-loaded/bufferedServer.test (renamed from examples/working-compiler/bufferedServer.test)0
-rw-r--r--examples/working-loaded/httpServer.test15
2 files changed, 15 insertions, 0 deletions
diff --git a/examples/working-compiler/bufferedServer.test b/examples/working-loaded/bufferedServer.test
index 58e47a8..58e47a8 100644
--- a/examples/working-compiler/bufferedServer.test
+++ b/examples/working-loaded/bufferedServer.test
diff --git a/examples/working-loaded/httpServer.test b/examples/working-loaded/httpServer.test
new file mode 100644
index 0000000..fdfce61
--- /dev/null
+++ b/examples/working-loaded/httpServer.test
@@ -0,0 +1,15 @@
+net .alg .httpServer "+" via
+ { 2002 } +port
+ { ":" via
+ :url dump
+ [
+ { :url "/" streq } {
+ "<html><body>Hallo Welt!<a href=\"/test\">Test</a></body></html>"
+ "text/html" :ok
+ } { :url "/test" streq } {
+ "<html><body>Test!</body></html>"
+ "text/html" :ok
+ }
+ ] conds
+ } +request
+ +run