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=5325734bc2e4927ed7ec146e35a6f0f2b49f50c1;hp=aafe347e7f9850a8ffca2a3694b6073aab315878;hpb=6a8da4dd52033adfe80533f7467439aec1561147;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 aafe347e7..492be655a 100644 --- a/helm/DEVEL/ocaml-http/examples/always_ok_daemon.ml +++ b/helm/DEVEL/ocaml-http/examples/always_ok_daemon.ml @@ -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)