src/Tools/WWW_Find/echo.ML
author haftmann
Wed, 10 Feb 2010 14:12:04 +0100
changeset 35092 cfe605c54e50
parent 33823 24090eae50b6
permissions -rw-r--r--
moved less_eq, less to Orderings.thy; moved abs, sgn to Groups.thy

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