X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Focaml-http%2Fexamples%2Fobj_foo.ml;h=3a6911019003010411dce31b89d6fddcfaa2ea46;hb=0c6a5aadb1a7746681a8e26fc0b009f847c10557;hp=98e024045786d0937f571a1957face4105342b33;hpb=2f28bfb47f5fad6b3c5a705d9ede95700416dee8;p=helm.git diff --git a/helm/DEVEL/ocaml-http/examples/obj_foo.ml b/helm/DEVEL/ocaml-http/examples/obj_foo.ml index 98e024045..3a6911019 100644 --- a/helm/DEVEL/ocaml-http/examples/obj_foo.ml +++ b/helm/DEVEL/ocaml-http/examples/obj_foo.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 @@ -19,7 +19,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *) -let callback req outchan = - Http.Daemon.respond_error ~body:(req#param "foo") outchan +open Http_types;; + +let callback (req: request) outchan = + Http_daemon.respond_error ~body:(req#param "foo") outchan in -Http.Daemon.start' ~addr:"127.0.0.1" ~port:9999 callback +Http_daemon.start' ~port:9999 callback