X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Focaml-http%2Fexamples%2Fobj_foo.ml;h=2786218530ccf7e8ef4b20966e928d40ab9713bf;hb=ca9cd0aeee0ce78a891f7f6091ca8704231a446d;hp=c36ea3ec3b6811ee4ef8b7f47f2327974aca291e;hpb=b5703de4f7697426ebda94fce2558add7c4f0285;p=helm.git diff --git a/helm/DEVEL/ocaml-http/examples/obj_foo.ml b/helm/DEVEL/ocaml-http/examples/obj_foo.ml index c36ea3ec3..278621853 100644 --- a/helm/DEVEL/ocaml-http/examples/obj_foo.ml +++ b/helm/DEVEL/ocaml-http/examples/obj_foo.ml @@ -19,7 +19,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *) -let callback req outchan = +open Http_types;; + +let callback (req: request) outchan = Http_daemon.respond_error ~body:(req#param "foo") outchan in Http_daemon.start' ~port:9999 callback