X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Focaml-http%2Fexamples%2Falways_ok_daemon.ml;h=492be655aaa62f6a2045a9bd6a0495ef3fe9c9a5;hb=3c7ca719c304eb7de7d8d4e9a90ebe0db8d8ecab;hp=020d4f600cfb2269b4ce9fb97504654dadaedb47;hpb=2f28bfb47f5fad6b3c5a705d9ede95700416dee8;p=helm.git diff --git a/helm/DEVEL/ocaml-http/examples/always_ok_daemon.ml b/helm/DEVEL/ocaml-http/examples/always_ok_daemon.ml index 020d4f600..492be655a 100644 --- a/helm/DEVEL/ocaml-http/examples/always_ok_daemon.ml +++ b/helm/DEVEL/ocaml-http/examples/always_ok_daemon.ml @@ -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)