diff options
Diffstat (limited to 'examples/working-loaded/httpServer.test')
| -rw-r--r-- | examples/working-loaded/httpServer.test | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
