src/Tools/WWW_Find/echo.ML
author wenzelm
Sat, 18 Jun 2011 17:42:28 +0200
changeset 43444 f744902b4681
parent 33823 24090eae50b6
permissions -rw-r--r--
updated to jedit_build-20110618, which is required for sub/superscript rendering;

(*  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;