X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=helm%2Fhttp_getter%2Fhttp_getter_misc.mli;fp=helm%2Fhttp_getter%2Fhttp_getter_misc.mli;h=946446dc6cc35c3ef6f3b7a377b396f2f424914b;hp=469ce81595672be49440f4785483673946d71b3c;hb=5e2135da18eeca0970692c12a0174690e6db7bd6;hpb=b3bd459aeedce3ae8b21e25c3f8cab730bd544f9 diff --git a/helm/http_getter/http_getter_misc.mli b/helm/http_getter/http_getter_misc.mli index 469ce8159..946446dc6 100644 --- a/helm/http_getter/http_getter_misc.mli +++ b/helm/http_getter/http_getter_misc.mli @@ -26,6 +26,10 @@ * 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