]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/examples/always_ok_daemon.ml
Debugging stuff removed.
[helm.git] / helm / DEVEL / ocaml-http / examples / always_ok_daemon.ml
index 020d4f600cfb2269b4ce9fb97504654dadaedb47..492be655aaa62f6a2045a9bd6a0495ef3fe9c9a5 100644 (file)
@@ -19,8 +19,7 @@
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *)
 
-open Http.Daemon;;
-open Http.Response;;
+open Http_daemon;;
   (* start an http daemon that alway respond with a 200 status code and an empty
   content *)
-start (fun _ _ -> respond_with (new Http.Response.response))
+start ~port:9999 (fun _ _ outchan -> respond outchan)