Commits

camlspotter  committed 132ad72
  • Participants
  • Parent commits c8515ba

Comments (0)

Files changed (1)

 val get_string : (Curl.handle -> unit) -> [> `Error of [> `Http of int * string ] | `Ok of string ]
 (** Get string *)
 
-val download : string -> (Curl.handle -> unit) -> [> `Error of [> `Http of int * unit ] | `Ok of unit ]
-(** Download file *)
+val download : string -> (Curl.handle -> unit) -> [> `Error of [> `Http of int * string ] | `Ok of string ]
+(** Download file. Return the final downloaded file path.
+    At error, the tmp file is not removed since it may contain error message. 
+*)