]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/examples/always_ok_daemon.ml
first moogle template checkin
[helm.git] / helm / DEVEL / ocaml-http / examples / always_ok_daemon.ml
index aafe347e7f9850a8ffca2a3694b6073aab315878..492be655aaa62f6a2045a9bd6a0495ef3fe9c9a5 100644 (file)
@@ -20,7 +20,6 @@
 *)
 
 open Http_daemon;;
-open Http_response;;
   (* 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)