]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/examples/damned_recursion.ml
- merged "post" branch
[helm.git] / helm / DEVEL / ocaml-http / examples / damned_recursion.ml
index 32faa01371ee385d76f01a076e60014aebff6005..0280b3f1c5a0795d9b98359813b97f502529dd4b 100644 (file)
@@ -19,6 +19,7 @@
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *)
 
+open Http_types;;
 open Printf;;
 
 (*
@@ -44,7 +45,7 @@ let wget addr port path =
   let inchan = Unix.in_channel_of_descr suck in
   wget' inchan ""
 in
-let callback req outchan =
+let callback (req: request) outchan =
   let i = int_of_string (req#param "x") in
   prerr_endline (string_of_int i);
   match i with