X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fgetter%2Fhttp_getter_misc.mli;h=5daac8c32eda068248210d5802bede58ba331bd7;hb=73ad0985990447db97f17870d2744f8fda13ebe4;hp=b328742be76370b1ca804a3c06510999406327d6;hpb=384c369d4cbf5dd6cf1013902d3a218260400e73;p=helm.git diff --git a/helm/ocaml/getter/http_getter_misc.mli b/helm/ocaml/getter/http_getter_misc.mli index b328742be..5daac8c32 100644 --- a/helm/ocaml/getter/http_getter_misc.mli +++ b/helm/ocaml/getter/http_getter_misc.mli @@ -30,6 +30,9 @@ failure reason *) exception Mkdir_failure of string * string + (** true for URI belonging to the "file://" scheme *) +val is_local_url: string -> bool + (** "fold_left" like function on file lines, trailing newline is not passed to the given function *) val fold_file : (string -> 'a -> 'a) -> 'a -> string -> 'a @@ -67,13 +70,10 @@ val mkdir: ?parents: bool -> string -> unit (** pretty printer for Unix.process_status values *) val string_of_proc_status : Unix.process_status -> string - (** raw HTTP downloader, return Some the contents of downloaded resource or + (** raw URL downloader, return Some the contents of downloaded resource or 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 (** true on blanks-only and #-commented lines, false otherwise *) val is_blank_line: string -> bool