src/Tools/WWW_Find/echo.ML
author wenzelm
Thu, 13 May 2010 18:22:10 +0200
changeset 36878 5caff17a28cd
parent 33823 24090eae50b6
permissions -rw-r--r--
unconstrainT operations on proofs, according to krauss/schropp;

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