X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fhttp_getter%2Fhttp_getter_misc.mli;h=946446dc6cc35c3ef6f3b7a377b396f2f424914b;hb=caab26f85122e0040555139c48a9111a0b2b9fff;hp=94c5dc5a97e2f3b0255a70aa17a0870724f250ea;hpb=f4389bc575610ab6cabcc0a034ae5a3b92739f60;p=helm.git diff --git a/helm/http_getter/http_getter_misc.mli b/helm/http_getter/http_getter_misc.mli index 94c5dc5a9..946446dc6 100644 --- a/helm/http_getter/http_getter_misc.mli +++ b/helm/http_getter/http_getter_misc.mli @@ -1,5 +1,7 @@ (* - * Copyright (C) 2003, HELM Team. + * Copyright (C) 2003: + * Stefano Zacchiroli + * for the HELM Team http://helm.cs.unibo.it/ * * This file is part of HELM, an Hypertextual, Electronic * Library of Mathematics, developed at the Computer Science @@ -21,9 +23,13 @@ * MA 02111-1307, USA. * * For details, see the HELM World-Wide-Web page, - * http://cs.unibo.it/helm/. + * 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 @@ -59,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