]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/http_getter/http_getter_misc.mli
- rewritten cp, wget, mkdir in OCaml
[helm.git] / helm / http_getter / http_getter_misc.mli
index 469ce81595672be49440f4785483673946d71b3c..946446dc6cc35c3ef6f3b7a377b396f2f424914b 100644 (file)
  *  http://helm.cs.unibo.it/
  *)
 
+ (** 'mkdir' failed, arguments are: name of the directory to be created and
+ failure reason *)
+exception Mkdir_failure of string * string
+
  (** "fold_left" like function on file lines, trailing newline is not passed to
  the given function *)
 val fold_file : ('a -> string -> 'a) -> 'a -> string -> 'a
@@ -61,4 +65,7 @@ val string_of_proc_status : Unix.process_status -> string
   None if an error occured while downloading. This function support also
   "file://" scheme for filesystem resources *)
 val http_get: string -> string option
+  (** 'iter' like method that iter over string slices (unspecified length) of a
+  remote resources fetched via HTTP GET requests *)
+val http_get_iter_buf: callback:(string -> unit) -> string -> unit