src/Tools/WWW_Find/echo.ML
author haftmann
Tue, 30 Nov 2010 20:52:49 +0100
changeset 40827 abbc05c20e24
parent 33823 24090eae50b6
permissions -rw-r--r--
code preprocessor setup for numerals on word type; less meta-equalites; more xsymbols; less implicit propositions

(*  Title:      Tools/WWW_Find/echo.ML
    Author:     Timothy Bourke, NICTA

Install simple echo server.
*)

local
fun echo (req, content, send) =
  (send (ScgiReq.show req);
   send "--payload-----\n";
   send (Byte.bytesToString content);
   send "\n--------------\n")
in
val () = ScgiServer.register ("echo", SOME Mime.plain, echo);
end;