Source

valok200:int*'a->[>`Okof'a|`Errorof[>`Httpofint*'a]](** HTTP result to a result monad *)valget_string:(Curl.handle->unit)->[>`Errorof[>`Httpofint*string]|`Okofstring](** Get string *)valdownload:string->(Curl.handle->unit)->[>`Errorof[>`Httpofint*string]|`Okofstring](** Download file. Return the final downloaded file path. At error, the tmp file is not removed since it may contain error message. *)