X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Focaml-http%2Fexamples%2Falways_ok_daemon.ml;h=d5d456d7481d9a22488c4802dcadb2168775ab4f;hb=741b3e9014f940fbbd34bee7b606ff7e72170452;hp=48b5fd4bbc8daa7798a274074b100368955af492;hpb=697d0d8857366485238a67386d0ce8f18404ac42;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 48b5fd4bb..d5d456d74 100644 --- a/helm/DEVEL/ocaml-http/examples/always_ok_daemon.ml +++ b/helm/DEVEL/ocaml-http/examples/always_ok_daemon.ml @@ -2,7 +2,7 @@ (* OCaml HTTP - do it yourself (fully OCaml) HTTP daemon - Copyright (C) <2002> Stefano Zacchiroli + Copyright (C) <2002-2004> Stefano Zacchiroli This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,7 +20,7 @@ *) open Http_daemon;; -open Http_response;; (* start an http daemon that alway respond with a 200 status code and an empty content *) -start ~port:9999 (fun _ _ -> respond_with (new Http_response.response)) +start ~port:9999 ~addr:"localhost" (fun _ _ outchan -> respond outchan) +