From 3fb7dd375ada97b9413abfecccd8a889c53dc93a Mon Sep 17 00:00:00 2001 From: Drahflow Date: Wed, 4 Sep 2013 01:55:51 +0200 Subject: Minimal HTTP server --- examples/working-loaded/httpServer.test | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/working-loaded/httpServer.test (limited to 'examples/working-loaded/httpServer.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 } { + "Hallo Welt!Test" + "text/html" :ok + } { :url "/test" streq } { + "Test!" + "text/html" :ok + } + ] conds + } +request + +run -- cgit v1.2.3